home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / doc / tech-notes.txt < prev   
Text File  |  1997-02-28  |  184KB  |  3,621 lines

  1.  
  2.                              Pine Technical Notes
  3.                                        
  4.    Version 3.96, February 1997
  5.    
  6.    Pine and Pico are trademarks of the University of Washington.
  7.    Copyright ⌐ 1989-1997 by the University of Washington. For information
  8.    on copying, modifying or distributing documents from the Pine
  9.    Information Center, see the Legal Notices.
  10.    
  11. Table of Contents
  12.  
  13.   Introduction
  14.   
  15.      * Design Goals
  16.      * Pine Components
  17.        
  18.   Background Details
  19.   
  20.      * Domain Names
  21.      * RFC 822 Compliance
  22.      * SMTP and Sendmail
  23.      * Internet Message Access Protocol (IMAP)
  24.      * Multipurpose Internet Mail Extensions (MIME)
  25.      * Folder Collections
  26.        
  27.   Building and Installation
  28.   
  29.      * UNIX Pine Compile-time Options
  30.      * Pico Compile-time Options
  31.      * IMAPd Compile-time Options
  32.      * Building the Pine Programs
  33.      * Installing Pine and Pico on UNIX Platforms
  34.      * Installing PC-Pine
  35.      * Installing IMAPd
  36.      * Support Files and Environment Variables: UNIX Pine
  37.      * Support Files and Environment Variables: PC-Pine
  38.        
  39.   Command Line Arguments
  40.   
  41.      * Pine
  42.      * Pico
  43.      * Pilot
  44.        
  45.   Configuration and Preferences
  46.   
  47.      * Pine Configuration
  48.      * General Configuration Variables
  49.      * Retired Variables
  50.        
  51.     Configuration Notes
  52.           + Pine in Function Key Mode
  53.           + Domain Settings
  54.           + Syntax for Collections
  55.           + Syntax for Remote Folders
  56.           + Sorting a Folder
  57.           + Alternate Editor
  58.           + Signatures and Signature Placement
  59.           + Feature List Variable
  60.           + Additional Notes on PC-Pine
  61.        
  62.   Behind the Scenes
  63.   
  64.      * Address Books
  65.      * Checkpointing
  66.      * Debug Files
  67.      * Filters
  68.      * Folder Formats and Name Extensions
  69.      * Folder Locking
  70.      * INBOX and Special Folders
  71.      * Internal Help Files
  72.      * International Character Sets
  73.      * Interrupted and Postponed Messages
  74.      * Message Status
  75.      * MIME: Reading a Message
  76.      * MIME: Sending a Message
  77.      * New Mail Notification
  78.      * NFS
  79.      * Printers and Printing
  80.      * Save and Export
  81.      * Sent Mail
  82.      * Spell Checker
  83.      * Terminal Emulation and Key Mapping
  84.        
  85.   Notes for Porting and Modification
  86.   
  87.      * Porting Pine to Other Platforms
  88.      * Test Checklist
  89.  
  90.                                  Introduction
  91.                                        
  92. Design Goals
  93.  
  94.    Throughout Pine development, we have had to strike a balance between
  95.    the need to include features which advanced users require and the need
  96.    to keep things simple for beginning users. To strike this balance, we
  97.    have tried to adhere to these design principles:
  98.    
  99.    
  100.           - The underlying model presented to the user has to be simple
  101.           and clear. Underlying system operation is hidden as much as
  102.           possible.
  103.    
  104.           - It's better to have a few easily understood commands that can
  105.           be repeated than to have some more sophisticated command that
  106.           will do the job all at once.
  107.    
  108.           - Whenever the user has to select a command, file name,
  109.           address, etc., the user should be given (or can get) a menu
  110.           from which to make the selection. Menus need to be complete,
  111.           small, organized and well thought out.
  112.    
  113.           - Pine must provide immediate feedback for the user with each
  114.           operation.
  115.    
  116.           - Pine must be very tolerant of user errors. Any time a user is
  117.           about to perform an irreversible act (send a message, expunge
  118.           messages from a folder), Pine should ask for confirmation.
  119.    
  120.           - Users should be able to learn by exploration without fear of
  121.           doing anything wrong. This is an important feature so the user
  122.           can get started quickly without reading any manuals and so
  123.           fewer manuals are required.
  124.    
  125.           - The core set of Pine functions should be kept to a minimum so
  126.           new users don't feel "lost" in seemingly extraneous commands
  127.           and concepts.
  128.           
  129.    Just as there were goals relating to the look and feel of Pine, there
  130.    were equally important goals having to do with Pine's structure-the
  131.    things that users never see but still rely on every time they use
  132.    Pine. While Pine can be used as a stand-alone mail user agent, one of
  133.    its strongest assets is its use of the Internet Message Access
  134.    Protocol (IMAP) for accessing remote email folders. In addition, Pine
  135.    was one of the first programs to support the Multipurpose Internet
  136.    Mail Extensions (MIME) specification. With MIME, Pine users can
  137.    reliably send any binary file to any other person on the Internet who
  138.    uses a MIME compliant email program.
  139.    
  140.    The decision to use IMAP and MIME reflect the importance of
  141.    interoperability, standardization and robustness in Pine. As you work
  142.    with Pine more, you will see other features which reflect the same
  143.    values. For example, Pine enforces strict compliance with RFC 822,
  144.    implements a strong mail folder locking mechanism and verifies a
  145.    process before overwriting any files (e.g. addressbook, expunging
  146.    messages).
  147.    
  148. Pine Components
  149.  
  150.    If you have picked up the Pine distribution, then you already know
  151.    that Pine comes in a few different pieces. They are:
  152.    
  153.    Pine
  154.           This main code from which the Pine program is compiled.
  155.    Pico
  156.           Pico is the name for the Pine composer. The Pico code is used
  157.           in two ways: (1) it is compiled on its own to be a stand-alone
  158.           editor or (2) compiled as a library for Pine to support
  159.           composition of messages within Pine. Pico is Pine's internal
  160.           editor invoked when users need to fill in header lines or type
  161.           the text of an email message.
  162.    Imap
  163.           An API for IMAP. Includes the C-Client library, which is
  164.           compiled into Pine, and the IMAP server IMAPd. C-Client
  165.           implements the IMAP protocol and also negotiates all access
  166.           between Pine and the mail folders it operates on. The C-Client
  167.           routines are used for email folder parsing and interpreting
  168.           MIME messages. IMAPd is a separate server that handles IMAP
  169.           connections from any IMAP-compliant email program. When Pine
  170.           accesses a remote mailbox, the Pine program is the IMAP client
  171.           and the IMAPd program is the IMAP server.
  172.  
  173.                               Background Details
  174.                                        
  175. Domain Names
  176.  
  177.    
  178.    Domain names are used to uniquely name each host on the Internet. A
  179.    domain name has a number of parts separated by periods. Each label
  180.    represents a level in the hierarchy. An example of a name is:
  181.    
  182.      olive.cac.washington.edu
  183.      
  184.    In this domain name the top-level label is edu, indicating it is at an
  185.    educational institution, the second-level label is washington,
  186.    indicating the University of Washington. cac is a specific department
  187.    within the University of Washington, and olive is the host name. The
  188.    top-level names are assigned by Internet organizations, and other
  189.    names are assigned at the appropriate level. The Domain Name Service,
  190.    DNS, is the distributed database used to look up these names.
  191.    
  192.    Pine relies on domain names in multiple places. A domain name is
  193.    embedded into the message-id line generated for each piece of email. A
  194.    domain name is needed to contact an IMAP server to get access to
  195.    remote INBOXes and folders. Most importantly, domain names are needed
  196.    to construct the From: line of your outgoing messages so that people
  197.    on the Internet will be able to get email back to you.
  198.    
  199.    On UNIX systems, you can set the domain via the user-domain variable
  200.    in the Pine configuration file, or rely on the file /etc/hosts which
  201.    usually sets the name of the local host. While Pine can often deliver
  202.    email without the domain name being properly configured, it is best to
  203.    have this set right. Problems can usually be solved by adjusting the
  204.    system's entry in the /etc/hosts file. The fully-qualified name should
  205.    be listed before any abbreviations.
  206.    
  207.      128.95.112.99 olive.cac.washington.edu olive
  208.      
  209.    is preferred over
  210.    
  211.      128.95.112.99 olive olive.cac.washington.edu
  212.      
  213.    On PCs, the task of configuring the domain name is a bit different.
  214.    Often times, PCs do not have domain names-they have IP addresses. IP
  215.    addresses are the numbers which uniquely identify a computer on the
  216.    network. The way you configure your IP address depends on the
  217.    networking software which you use on the PC. You can refer to the
  218.    documentation which came with your networking software or see the PC
  219.    specific installation notes for help configuring the IP address with
  220.    your network software.
  221.    
  222.    With PCs, it is vital that users set the variable user-domain in the
  223.    Pine configuration file (PINERC).
  224.    
  225.    Details on configuring Pine with correct domain names can be found in
  226.    the Domain Settings section of this document.
  227.    
  228.      _________________________________________________________________
  229.                                       
  230. RFC 822 Compliance
  231.  
  232.    Pine tries to adhere to RFC 822 a little more strongly than some other
  233.    mailers and uses the "full name <address>" format rather than the
  234.    older "address (full name)" format. The intent of the standard is that
  235.    parentheses should only be for comments. Pine displays and generates
  236.    the newer format, but will parse the old format and attempt to turn it
  237.    into the new one.
  238.    
  239.    As far as outgoing email is concerned, Pine fully-qualifies addresses
  240.    whenever possible. They are even displayed in fully-qualified form on
  241.    the terminal as the user composes a message. This makes addresses more
  242.    clear and gives a hint to the user that the network extends beyond the
  243.    local organization. Pine implements fully-qualified domain names by
  244.    tacking on the local domain to all unqualified addresses which a user
  245.    types in. Any address which does not contain a "@" is considered
  246.    unqualified.
  247.    
  248.    The newer format for addresses allow for spaces and special characters
  249.    in the full name of an address. For this reason, commas are required
  250.    to separate addresses. If any special characters as defined in RFC 822
  251.    appear in the full name, quotes are required around the address. Pine
  252.    will insert the quotes automatically. The common cases where this
  253.    happens are with periods after initials and parentheses.
  254.    
  255.    Because Pine fully complies with RFC 822, it is sometimes difficult to
  256.    use non-Internet address formats such as UUCP's host!user or DECNet's
  257.    USER::HOST with Pine. People who run Pine on these systems have made
  258.    local modifications to Pine or to the mail transport agent (e.g.
  259.    sendmail) to make things work for them.
  260.    
  261.    Pine expects dates to be in the standard RFC 822 format which is
  262.    something like:
  263.  
  264.         [www, ] dd mmm yy hh:mm[:ss] [timezone]
  265.  
  266.    It will attempt to parse dates that are not in this format. When an
  267.    unparsable date is encountered it is displayed as xxx xx when shown in
  268.    the FOLDER INDEX screen.
  269.    
  270.      _________________________________________________________________
  271.                                       
  272. SMTP and Sendmail
  273.  
  274.    Pine is a user agent not a message transfer agent. In plain English,
  275.    that means Pine does not know how to interact with other computers on
  276.    the Internet to deliver or receive email. What Pine does know how to
  277.    do is help users read, organize and create email. The "dirty work" of
  278.    delivering and accepting email is handled by other programs.
  279.    
  280.    All outgoing email is delivered to a mail transfer program or to an
  281.    SMTP server. The most common mail transfer program is sendmail.
  282.    
  283.    Pine 3.91 and earlier:
  284.           When Pine on a UNIX computer uses the local sendmail, it first
  285.           writes the message to a temporary file in /tmp. Then Pine runs
  286.           a shell in the background that runs sendmail on the temporary
  287.           file and then removes it. This is done with a shell in the
  288.           background so the user doesn't have to wait for sendmail to
  289.           finish. By default, sendmail is invoked with the -t flag to
  290.           cause it to read and parse the header to determine the
  291.           recipients; the -oem flag to cause errors to be mailed back;
  292.           and the -oi flag to ignore dots in incoming messages. Systems
  293.           administrators can choose to configure Pine to use a different
  294.           mail transfer program or even sendmail with different flags.
  295.           See the section on UNIX Pine Compile-time Options for more
  296.           details on this.
  297.           
  298.           Pine can also operate as an SMTP client. SMTP stands for Simple
  299.           Mail Transfer Protocol; it specifies the rules by which
  300.           computers on the Internet pass email to one another. In this
  301.           case, Pine passes outgoing email messages to a designated SMTP
  302.           server instead of to a mail transfer program on the local
  303.           machine. A program on the server then takes care of delivering
  304.           the message. To make Pine operate as an SMTP client, the
  305.           smtp-server variable must be set to the IP address or host name
  306.           of the SMTP server within your organization. This variable
  307.           accepts a comma separated list of servers, so you can specify
  308.           multiple SMTP servers. PC-Pine only runs as an SMTP client.
  309.           
  310.    Pine 3.92 and later:
  311.           The selection of which MTA to use depends on the settings of
  312.           sendmail-path, smtp-server, and compile-time options. The first
  313.           MTA specified in the following list is used:
  314.           
  315.          1. sendmail-path in /usr/local/lib/pine.conf.fixed
  316.          2. smtp-server in /usr/local/pine.conf.fixed
  317.          3. sendmail-path specified on the command line.
  318.          4. smtp-server specified on the command line.
  319.          5. sendmail-path in the user's .pinerc file.
  320.          6. smtp-server in the user's .pinerc file.
  321.          7. sendmail-path in /usr/local/lib/pine.conf
  322.          8. smtp-server in /usr/local/pine.conf
  323.          9. DF_SENDMAIL_PATH defined at compile time.
  324.         10. SENDMAIL and SENDMAILFLAGS defined at compile time.
  325.             
  326.           If the sendmail-path form is used, a child process is forked,
  327.           and the specified command is executed with the message passed
  328.           on standard input. Standard output is then passed back and
  329.           displayed for the user. NOTE: The program MUST read the message
  330.           to be posted on standard input, AND operate in the style of
  331.           sendmail's "-t" option. 
  332.           
  333.           If an smtp-server is specified, a connection to the server is
  334.           opened. If the message contains 8-bit text, ESMTP 8BITMIME
  335.           negotiation is attempted. The message is then sent using SMTP
  336.           commands.
  337.           
  338.           If none of the above are set, the default sendmail program is
  339.           invoked with the "-bs -odb -oem" flags, ESMTP negotiation is
  340.           attempted, and the message is sent.
  341.           
  342.      _________________________________________________________________
  343.                                       
  344. Internet Message Access Protocol (IMAP)
  345.  
  346.    IMAP is a remote access protocol for message stores. Pine uses IMAP to
  347.    get at messages and folders which reside on remote machines. With
  348.    IMAP, all messages are kept on the server. An IMAP client (such as
  349.    Pine) can request specific messages, headers, message structures, etc.
  350.    The client can also issue commands which delete messages from folders
  351.    on the server. IMAP's closest kin is POP, the Post Office Protocol,
  352.    which works by transferring an entire mailbox to the client where all
  353.    the mail is kept. For a comparison of IMAP and POP, see the paper
  354.    "Comparing Two Approaches to Remote Mailbox Access: IMAP vs. POP" by
  355.    Terry Gray. A more detailed exploration of message access may be found
  356.    in the paper " Message Access Paradigms and Protocols." These papers
  357.    may be found in the /mail directory of the anonymous FTP server at
  358.    ftp.cac.washington.edu.
  359.    
  360.    IMAP Features:
  361.      * Allows access to mail folders from more than one client computer.
  362.      * Works well over low-bandwidth lines because information is sent in
  363.        small pieces as needed by the user. For example, only header
  364.        information is sent to build index lists, and if someone sends a
  365.        2MB audio file via MIME, you can choose when (or if) you want to
  366.        get that part of the message.
  367.      * Email can be delivered and stored on a well-maintained and
  368.        reliable server which is "always-up".
  369.      * Folders can be accessed and manipulated from anywhere on the
  370.        Internet.
  371.      * Users can get to messages stored in different folders within the
  372.        same Pine session.
  373.      * Allows use of IMAP server for searching and parsing.
  374.      * The latest revision of IMAP (IMAP4) also provides for disconnected
  375.        operation, including resynchronization of message state between
  376.        mail servers and message caches on clients. Pine does not yet
  377.        support this capability, however.
  378.        
  379.    IMAP2 is defined in RFC 1176. IMAP4, the revision to IMAP2, is
  380.    described in RFC 1730. Further information about IMAP may be obtained
  381.    from the University of Washington's IMAP Information Center on the
  382.    World Wide Web.
  383.    
  384.    Pine 3.95 is an IMAP2bis client and does not yet implement all of the
  385.    IMAP4 extensions. (IMAP2bis was an interim specification superseded by
  386.    IMAP4.) Pine takes advantage of the extensions defined in IMAP2bis for
  387.    efficient and selective access to MIME body parts. We expect the next
  388.    major release of Pine (probably version 4.0) to be fully compatible
  389.    with the IMAP4 specification.
  390.    
  391.      _________________________________________________________________
  392.                                       
  393. Multipurpose Internet Mail Extensions (MIME)
  394.  
  395.    MIME is a way of encoding a multipart message structure into a
  396.    standard Internet email message. The parts may be nested and may be of
  397.    seven different types: Text, Audio, Image, Video, Message, Application
  398.    and Multipart (nested). The MIME specification allows email programs
  399.    such as Pine to reliably and simply exchange binary data (images,
  400.    spreadsheets, etc.) MIME includes support for international character
  401.    sets, tagging each part of a message with the character set it is
  402.    written in, and providing 7-bit encoding of 8-bit character sets. It
  403.    also provides a simple rich text format for marking text as bold,
  404.    underlined, and so on. There is a mechanism for splitting messages
  405.    into multiple parts and reassembling them at the receiving end.
  406.    
  407.    The MIME standard was officially published in June of 1992 as RFC 1341
  408.    and subsequently revised in RFC 1521 when it became a full Internet
  409.    Standard. Pine 3.0 was one of the first email programs to Implement
  410.    MIME. Now, there are dozens of commercial and freely available
  411.    MIME-capable email programs. In addition, MIME is being added to
  412.    newsreaders so MIME messages can be posted and read in USENET
  413.    newsgroups.
  414.    
  415.    The MIME standard also includes support for non-ASCII text in message
  416.    headers through the extensions described in RFC 1342 and subsequently
  417.    revised in RFC 1522. Support for RFC 1522 was added in Pine 3.92.
  418.    
  419.    An actual MIME message looks something like this:
  420. Date: Tue, 12 Mar 1996 15:39:35 -0800 (PST)
  421. From: David L Miller <dlm@cac.washington.edu>
  422. To: David L Miller <dlm@cac.washington.edu>
  423. Subject: =?iso-8859-1?Q?Test_MIME_message_with_RFC-1522_headers_=28=E1?=    =?i
  424. so-8859-1?Q?=E2=E3=29?=
  425. Message-Id: <Pine.ULT.3.92.960312150851.21583I-101000@shiva2.cac.washington.edu
  426. >
  427. Mime-Version: 1.0
  428. Content-Type: MULTIPART/MIXED; BOUNDARY="0-1737669234-826673975=:21583"
  429. Content-Id: <Pine.ULT.3.92.960312153928.21583O@shiva2.cac.washington.edu>
  430.  
  431.   This message is in MIME format.  The first part should be readable text,
  432.   while the remaining parts are likely unreadable without MIME-aware tools.
  433.   Send mail to mime@docserver.cac.washington.edu for more info.
  434.  
  435. --0-1737669234-826673975=:21583
  436. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  437. Content-ID: <Pine.ULT.3.92.960312153104.21583L@shiva2.cac.washington.edu>
  438.  
  439. The text of the message would go here. It is readable if
  440. one doesn't mind wading around a little bit of the MIME
  441. formatting. After this is a binary file in base 64
  442. encoding.
  443.  
  444. |\ |  |\/|  David L. Miller    dlm@cac.washington.edu  (206) 685-6240
  445. |/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
  446. University of Washington, Networks & Distributed Computing, JE-20
  447. 4545 15th Ave NE, Seattle WA 98105, USA
  448.  
  449. --0-1737669234-826673975=:21583
  450. Content-Type: APPLICATION/ZIP; NAME="test.zip"
  451. Content-Transfer-Encoding: BASE64
  452. Content-ID: <Pine.ULT.3.92.960312153638.21583N@shiva2.cac.washington.edu>
  453. Content-Description: Test Attachment
  454.  
  455. UEsDBBQAAAAIAGh8bCBbZKT4ygIAAHgFAAAEAAAAdGVzdIVUX2vbMBB/16c4
  456. 9rSBNyjsYX1UHSUROLInycv2qNhKI5ZYxlLa5dvvpDRLw6CFgJF09/t3Rxo3
  457. WDBDD43rPJjJQpxMbw9m+h3AbyHuLLSDe7JTcPGUbtYm7NzwGP3wBYQnnT8c
  458. 7NQ5s4djsC8t4QbmYE6wsfjpLTy7uPPHCOPk/ATPk4vRDmS008GF4PzwPich
  459. zY3m4LfxOQlPNy4GcEO3P/a2h2j/xGyp9ONpco+7CHf33+4/393ff4XNibzL
  460. c1UVfXJXQIdIBRx877b4TYy9C3Fym2NEyzsX/pNDet8dD3aIJiagLbo2wwnG
  461. 4zT6cK66ZLK1NhH9J4tcZQEy7OxkNyd4nMwQbV9glP7JZb87E3O32fgnm7We
  462. XQ8+us4SM47WTCkgMPt9enc2ZAW5c+Pj7o32l0IXXk/r8pSRE3A4jqOfIqqF
  463. G+PFlSdRDOaQduXNESTwtDcYfJ8191gWXUjYmOJ43Oxdh11JTzRuSPcY37+B
  464. vNqmf0O5RB1G27mt64rLCp4X8pW1L6BvxunCeYHNk3F7s9lb+GAwyvAhOyNE
  465. Lxm0gv9gUnH9C+o5rKlacrHQtYAZV2VF+UoBrSp8kJIKzZkqgP1sJFMKagl8
  466. 1VSczQqy5noJki2onIGuQS+5AlXPNfaxArgoq3aGwJDq6lZDxVdcU82RKMG/
  467. 4JArTVKzYrJc4pE+8CoJpGIGc65FIp8jO4WGSs3LtqISmlY2tUKyVMUFETWw
  468. H0xoUMvE8KbXB4aC6EPFzrDiF6iGlZxWBeFixiUrdXJb1kKx7y2C4hPM6Iou
  469. WI4hdVyO6yXVqkZqiXmottLJ9lzWK1LVKttqk8oZ1TS1NrJGS5jqeslQI0aK
  470. ieCvzNlgNZJqiccCc5WafLxmKdii4gsmSvYpISkteamzkRwXJiG5SoUpcERK
  471. 8xIE8QQ7o+eh5WAUy1qYRP8rioip/maI+OfyF1BLAQIUAxQAAAAIAGh8bCBb
  472. ZKT4ygIAAHgFAAAEAAAAAAAAAAEAAACkgQAAAAB0ZXN0UEsFBgAAAAABAAEA
  473. MgAAAOwCAAAAAA==
  474. --0-1737669234-826673975=:21583--
  475.  
  476.    For details about Pine's implementation of MIME, see the two MIME
  477.    sections "MIME: Reading a Message" and "MIME: Sending a Message" later
  478.    in this document.
  479.    
  480.      _________________________________________________________________
  481.                                       
  482. Folder Collections
  483.  
  484.    Folder Collections are Pine's way of dealing with more than a single
  485.    group of folders. With advent of PC-Pine and the development of tools
  486.    within IMAP to better manage remote folders, the time was ripe to
  487.    provide a mechanism for defining a group of remote folders. PC-Pine
  488.    forced the issue in that many potential PC-Pine users would be
  489.    migrating from UNIX pine in a time-sharing environment and, thus,
  490.    would have some investment in their archived messages on that host.
  491.    
  492.    Currently, Pine has no way to dynamically create or define
  493.    collections, but there is much work still going on in this area. The
  494.    hope is to provide a general way to define, display and navigate
  495.    remote folder collections in a consistent way across platforms and
  496.    applications. Especially important to this goal will be the hierarchy
  497.    support provisions in the IMAP4 specification. Stay tuned!
  498.    
  499.    For a more complete description of Folder Collections, see the section
  500.    on "Syntax for Collections."
  501.    
  502.    The Pine distribution is designed to require as little configuration
  503.    and effort at compile time as possible. Still, there are some Pine
  504.    behaviors which are set at the time you compile Pine. For each of
  505.    these, there is a reasonable (our opinion) default built into the
  506.    code, so most systems administrators will have no need for these
  507.    steps.
  508.  
  509.                            Building and Installation
  510.                                        
  511. UNIX Pine Compile-time Options
  512.  
  513.    The files you may need to modify are ./pine/makefile.xxx and
  514.    ./pine/osdep/os-xxx.h where "xxx" is the 3-letter code for your
  515.    platform. You can give the command build help to see the list of ports
  516.    incorporated into Pine and their associated 3-letter codes. The file
  517.    ./pine/makefile.xxx is where you would set your compiler options. By
  518.    default, Pine will be compiled with debugging on, optimization and
  519.    profile off. Note that if you compile with DEBUG off, then Pine will
  520.    not create its normal debug files, no matter how the debug-level and
  521.    debug command line flag are set.
  522.    
  523.    Most of Pine's behaviors are set in the file ./pine/osdep/os-xxx.h,
  524.    which includes comments that explain each setting. Some of these can
  525.    only be set when you compile. Others, however, can be overridden by
  526.    command-line flags to Pine or settings in Pine's user or system
  527.    configuration files. Some of the options which can be set when
  528.    compiling:
  529.    USE_QUOTAS
  530.           Determines whether quotas are checked on startup. Default is to
  531.           not check the quota.
  532.    ALLOW_CHANGING_FROM
  533.           Determines whether users are allowed to modify the From line on
  534.           outgoing mail. Even with this turned on, users will have to
  535.           include From in their default-composer-hdrs or customized-hdrs
  536.           in order to be able to edit the From line. Default is to not
  537.           allow any changing.
  538.    DEFAULT_DEBUG
  539.           Sets the level of debugging output created in Pine's debug
  540.           files. Default is level 2.
  541.    NEW_MAIL_TIME
  542.           Interval between new-mail checks. Default is 150 seconds.
  543.    OVERLAP
  544.           Number of lines overlap when user views the next page of a
  545.           message. Default is 2 lines.
  546.    USE_TERMINFO
  547.           Instructs Pine to use the terminfo database instead of termcap.
  548.           Default varies by system.
  549.    SENDMAIL
  550.    SENDMAILFLAGS
  551.           Sets the name and flags for the local program that will be
  552.           called to handle outgoing email. Default is /usr/lib/sendmail
  553.           -oi -oem -t.
  554.    SYSTEM_PINERC
  555.           The name of the file which holds Pine configuration information
  556.           for all users on the system. Default on UNIX systems is
  557.           /usr/local/lib/pine.conf.
  558.    SYSTEM_PINERC_FIXED
  559.           The name of the file which holds the same type of information
  560.           as for SYSTEM_PINERC, but only for variables that the
  561.           administrator wants to keep fixed. That is, users are not
  562.           allowed to change variables that are specified in the FIXED
  563.           file. Default on UNIX systems is
  564.           /usr/local/lib/pine.conf.fixed.
  565.           
  566.    There are a couple of more obscure options which are in the source
  567.    code because a few people have asked for them or because we changed
  568.    our minds about them being a good idea in general.
  569.    ENCODE_FROMS
  570.           Use Quoted-printable encoding so that From's at the beginning
  571.           of lines don't end up being escaped by >'s. Most people seem to
  572.           dislike the Q-P encoding more than the > escapes so this is off
  573.           by default. Once everyone has MIME mail readers, we'll turn
  574.           this on by default.
  575.    NO_KEYBOARD_LOCK
  576.           Disable the keyboard locking function in the main menu.
  577.           Keyboard locking is enabled by default. (Keyboard lock may also
  578.           be turned off by adding disable-kblock-cmd to the feature list
  579.           variable in the global pine.conf file.)
  580.           
  581.      _________________________________________________________________
  582.                                       
  583. Pico Compile-time Options
  584.  
  585.    There are even fewer options needed when compiling Pico. The two
  586.    interesting ones are for UNIX Pico versions only. The file that may
  587.    need some changing is ./pico/os_unix.h. Whatever is set will effect
  588.    the behavior of the Pico stand-alone program as well as the composer
  589.    within Pine.
  590.    SPELLER
  591.           Names the program called to do "normal" spell-checking.
  592.    TERMCAP
  593.    TERMINFO
  594.           Determines which of these terminal databases will be used.
  595.           
  596.      _________________________________________________________________
  597.                                       
  598. IMAPd Compile-time Options
  599.  
  600.    There are no options or settings required for the version of IMAPd
  601.    distributed with Pine. If you need to be doing more complex
  602.    modifications to IMAP, then you should pick up the IMAP development
  603.    package and work with that code. The developer's version of IMAP is
  604.    available for anonymous ftp from ftp.cac.washington.edu in the
  605.    directory mail. The file is called imap.tar.Z.
  606.    
  607.      _________________________________________________________________
  608.                                       
  609. Building the Pine Programs
  610.  
  611.    You may have already compiled Pine and tried it out. If so, great! If
  612.    not, you should be able to do it without too much trouble by following
  613.    these step-by-step instructions:
  614.    
  615.     1. Figure out what platform you're building for. You can give the
  616.        command build help to see the list of ports incorporated into
  617.        Pine. What you need is the three letter code for the platform.
  618.        Some examples are nxt for the Next operating system and ult for
  619.        Ultrix. If your platform is not in the list of ports, then you
  620.        might have some work ahead of you. First, check the file
  621.        doc/pine-ports to see if there are others working on a port for
  622.        your platform or to see if the port is included in the "contrib"
  623.        section of the source code. Ports in the contrib directory were
  624.        contributed by Pine administrators from around the world, but the
  625.        Pine development team has not been able to test the code. If Pine
  626.        has not yet been ported to your platform at all, read the section
  627.        on Porting Pine in this document.
  628.     2. Make sure you're in the root of the Pine source. When you type ls
  629.        you should see the following files and directories (or something
  630.        close to it):
  631.  
  632.         README  build   doc     makefile           pine
  633.         bin             contrib imap    pico
  634.     3. Make sure you're getting a clean start by giving the command build
  635.        clean. This should take only a few seconds to run.
  636.     4. Give the command build xxx where xxx is the three letter code you
  637.        picked in step 1. The compiler should grind away for a few
  638.        minutes.
  639.     5. When the compilation is complete the sizes of the four binaries
  640.        built (pine, mtest, imapd, pico) will be displayed. The actual
  641.        binaries are in the various source directories. In addition, the
  642.        bin directory contains a link to each program compiled. You can
  643.        just copy them out of bin or try them from there.
  644.        
  645.      _________________________________________________________________
  646.                                       
  647. Installing Pine and Pico on UNIX Platforms
  648.  
  649.    Installing Pine and Pico is remarkably simple. You take the program
  650.    files which you have just transferred or built and you move them to
  651.    the correct directory on your system. Most often the binaries go in
  652.    /usr/local/bin though sometimes they are placed in /usr/bin. All the
  653.    help text is compiled into Pine so there are no required auxiliary
  654.    files.
  655.    
  656.    There are, however, three optional auxiliary files:
  657.    /usr/local/lib/pine.info, /usr/local/lib/pine.conf, and
  658.    /usr/local/lib/pine.conf.fixed. The file pine.info contains text on
  659.    how to get further help on the local system. It is presented as the
  660.    first page of the help text for the main menu and should probably
  661.    refer to the local help desk or the system administrator. If this file
  662.    doesn't exist a generic version which suggests ``talking to the
  663.    computer support staff at your site'' is shown. The file pine.conf is
  664.    used to set system-wide default configurations for Pine. The file
  665.    pine.conf.fixed is also used to set system-wide default configurations
  666.    for Pine. The difference between these two files is that configuration
  667.    variables set in the pine.conf.fixed file may not normally be
  668.    over-ridden by a user. See the section on Pine Configuration later in
  669.    this document for details about the pine.conf and pine.conf.fixed
  670.    files.
  671.    
  672.      _________________________________________________________________
  673.                                       
  674. Installing PC-Pine
  675.  
  676.    Beginning with the Pine 3.90 release, there is a PC-Pine version that
  677.    runs under windows using the Winsock network interface. For those who
  678.    still need to run the DOS version of PC-Pine, there are versions for
  679.    four different TCP/IP network stacks: FTP Inc's PC/TCP, Novell's LAN
  680.    Workplace for DOS, Sun's PC/NFS, and WATTCP for packet drivers.
  681.    PC-Pine needs to be able to interact closely with the stack loaded on
  682.    your PC. Most of the time, this occurs automatically. However, there
  683.    are certain modifications that need be made.
  684.    
  685.    LAN Workplace for DOS Version 4.1
  686.           Set the environment variable EXCELAN in the PC's AUTOEXEC.BAT
  687.           file. This provides the necessary links so that LAN Workplace
  688.           for DOS 4.1 can translate domain names to IP numbers correctly.
  689.           It is needed because Pine was developed for LAN Workplace 4.0
  690.           and this particular variable is treated differently in 4.1 than
  691.           in 4.0. The EXCELAN variable must point to the directory in
  692.           which LAN Workplace is installed.
  693.    PC/TCP versions before 2.2
  694.           You need a file called PCTCP.INI which contains a bare-minimum
  695.           2-line description of the PC's configuration. It looks like
  696.           this:
  697.  
  698.                 [pctcp ifcust 0]
  699.                 ip-address=xx.xx.xx.xx
  700.           Where xx.xx.xx.xx is the IP address of the PC. Pine also
  701.           requires an environment variable, PCTCP, which points to this
  702.           file. For example:
  703.  
  704.                 set PCTCP=C:\PINE\PCTCP.INI
  705.    Packet Drivers
  706.           Pine needs to be made aware of the PC's network configuration
  707.           file. Simply edit the file WATTCP.CFG included in the Pine
  708.           distribution. The file includes 5 configuration
  709.           settings--IP-address, gateway, netmask, nameserver(s) and
  710.           domainslist. If you have a network configuration file for NCSA
  711.           Telnet then WATTCP.CFG is just a pared down version of the
  712.           CONFIG.TEL file you already made. Take a look at CONFIG.TEL to
  713.           find the correct settings for WATTCP.CFG. Once the
  714.           configuration file is made, the DOS environment variable
  715.           WATTCP.CFG needs to point at it. For example:
  716.  
  717.                 set WATTCP.CFG=C:\PINE
  718.           
  719.    In addition to networking software issues, you might need to worry
  720.    about setting the time zone. PC-Pine includes the time zone as part of
  721.    outgoing email. There is a generic way for PC applications to get the
  722.    time zone, but, because PC-Pine is one of a very few applications
  723.    which requires this information, time zone might not be previously
  724.    configured.
  725.    
  726.    The trick is to add an environment variable, TZ, to your PC's
  727.    AUTOEXEC.BAT file. The format for the TZ environment variable is as
  728.    follows:
  729.  
  730.         ZZZ[+H]H[:MM:SSTTT]
  731.  
  732.    First is the 3-letter code for your standard time, then a "+" or a "-"
  733.    for direction of offset from GMT, then the amount of offset (hours,
  734.    minutes, seconds) and finally the 3-letter code for your summer- or
  735.    daylight savings time. Everything in [] brackets is optional.
  736.    
  737.    The default time zone is "PST-8PDT" (U.S. Pacific Time).
  738.    Coincidentally, Microsoft is headquartered in that time zone.
  739.    
  740.    As an example, people in the Eastern part of the US should add this
  741.    line to their AUTOEXEC.BAT files:
  742.    
  743.         TZ=EST-5EDT
  744.  
  745.      _________________________________________________________________
  746.                                       
  747. Installing IMAPd
  748.  
  749.    When the Pine distribution is built on a UNIX station, the IMAP server
  750.    binary, imapd, is compiled. Installing imapd requires placing the
  751.    binary in the appropriate directory, usually /usr/etc, and adding
  752.    entries to /etc/services and /etc/inetd.conf or their counterparts.
  753.    The following line is appropriate for /etc/services:
  754.  
  755.   imap         143/tcp         # Mail transfer
  756.  
  757.    and the next line is appropriate for /etc/inetd.conf:
  758.   imap  stream  tcp     nowait  root    /usr/etc/imapd imapd
  759.  
  760.    The /etc/inetd.conf file entry may vary on different versions of UNIX.
  761.    Some have a slightly different set of fields. Also the pathname in
  762.    /etc/inetd.conf must match the path where imapd is installed.
  763.    
  764.    With this configuration, the IMAP server runs without
  765.    pre-authentication. Each new IMAP connection requires a correct
  766.    username and password. IMAP can also be run with pre-authentication
  767.    based on the standard rsh mechanism. To enable this, the user account
  768.    on the IMAP server must contain a valid file which grants access to
  769.    the client machine. Enabling rimap authentication is done by creating
  770.    a link called /etc/rimapd to imapd. Basically, what is happening is
  771.    that Pine is taking advantage of the ability that rsh has to use
  772.    privileged TCP ports so it doesn't have to run in privileged mode. If
  773.    the rimap authentication fails it will drop back to plain password
  774.    authentication.
  775.    
  776.    PC-Pine cannot take advantage of rimap authentication. Also, if your
  777.    system uses a distributed configuration database, like NIS, Yellow
  778.    Pages or Netinfo, be sure that appropriate steps are taken to ensure
  779.    the above mentioned information is updated.
  780.    
  781.      _________________________________________________________________
  782.                                       
  783. Support Files and Environment Variables: UNIX Pine
  784.  
  785.    This section lists the various files which Pine uses which are not
  786.    email folders. All of these are the default names of files, they may
  787.    vary based on Pine's configuration.
  788.    /usr/local/lib/pine.conf
  789.           Pine's global configuration file.
  790.    /usr/local/lib/pine.conf.fixed
  791.           Non-overridable global configuration file.
  792.    /usr/local/lib/pine.info
  793.           Local pointer to system administrator.
  794.    ~/.pinerc
  795.           Personal configuration file for each user.
  796.    ~/.addressbook
  797.           Personal addressbook
  798.    ~/.addressbook.lu
  799.           Personal address book lookup file (index file to speed up
  800.           lookups).
  801.    ~/.newsrc
  802.           Personal USENET subscription list. This is shared with other
  803.           newsreading programs.
  804.    ~/.pine-debugX
  805.           The files created for debugging Pine problems. By default,
  806.           there are 4 .pine-debug files kept at any time.
  807.    ~/.signature
  808.           A signature file which will be included in all outgoing email
  809.           messages.
  810.    ~/.pine-interrupted-mail
  811.           The text of a message which was interrupted by some unexpected
  812.           error which Pine detected.
  813.    ~/mail/postponed-msgs
  814.           A folder of messages which the user chose to postpone.
  815.    /etc/mailcap
  816.           System-wide mail capabilities file. Only used if $MAILCAPS not
  817.           set.
  818.    ~/.mailcap
  819.           Personal mail capabilities file. Combines with system-wide
  820.           mailcap. Only used if $MAILCAPS not set.
  821.           
  822.    The location of the following support files may be controlled by
  823.    variables in the personal or global Pine configuration file:
  824.    signature, addressbook and its index file, postponed messages, and
  825.    newsrc.
  826.    
  827.    Unix Pine uses the following environment variables:
  828.    TERM
  829.           Tells Pine what kind of terminal is being used.
  830.    DISPLAY
  831.           Determines if Pine will try to display IMAGE attachments.
  832.    SHELL
  833.           If not set, default is /bin/sh
  834.    MAILCAPS
  835.           A semicolon delimited list of path names to mailcap files.
  836.           
  837.      _________________________________________________________________
  838.                                       
  839. Support Files and Environment Variables: PC-Pine
  840.  
  841.    This section lists the various files which PC-Pine uses which are not
  842.    normal mail folders. All of these are the default names of files, they
  843.    may vary based on Pine's configuration.
  844.    
  845.    <PINE.EXE directory>\PINE.HLP
  846.           File containing Pine's internal help text.
  847.    <PINE.EXE directory>\PINE.NDX
  848.           Index of Pine's help text used by PC-Pine to locate entries.
  849.    $PINERC or $HOME\PINE\PINERC or <PINE.EXE dir>\PINERC
  850.           Path to (required) personal configuration file.
  851.    $PINECONF
  852.           Path of optional global configuration file.
  853.    <PINERC directory>\ADDRBOOK
  854.           Personal addressbook
  855.    <PINERC directory>\ADDRBOOK.LU
  856.           Personal address book lookup file (index file to speed up
  857.           lookups).
  858.    <PINERC directory>\PINE.SIG
  859.           A signature file which will be included in all outgoing email
  860.           messages.
  861.    <PINERC directory>\PINE.PWD
  862.           A file containing encrypted password for remote mail server.
  863.    <PINERC directory>\PINEDEBG.TXT
  864.           Location of Pine debug file.
  865.    <PINERC directory>\MAILCAP and/or <PINE.EXE dir>\MAILCAP
  866.           These paths are only used if $MAILCAPS not set.
  867.    $HOME\NEWSRC or <PINERC directory>\NEWSRC
  868.           Personal USENET subscription list. This may be shared with
  869.           other newsreading programs.
  870.    $HOME\MAIL\INTRUPTD
  871.           The text of a message which was interrupted by some unexpected
  872.           error which Pine detected.
  873.    $HOME\MAIL\POSTPOND
  874.           A folder of messages which the user chose to postpone.
  875.           
  876.    PC-Pine's help text and help text index file are expected to reside in
  877.    the same directory as the PINE.EXE executable, as they are essentially
  878.    extensions of the executable. The personal configuration file may be
  879.    in the same directory as the executable, or if that is inconvenient
  880.    because the executable is on a shared or read-only drive, then it can
  881.    be in a file named by the $PINERC environment variable, or in
  882.    $HOME\PINE\PINERC, where if not set, $HOME defaults to the root of the
  883.    current working drive.
  884.    
  885.    Most of the other support files key off of the location of the PINERC
  886.    file. However, in the case of the NEWSRC file, the path $HOME\NEWSRC
  887.    is checked first. Also, the postponed messages and interrupted message
  888.    folders are placed in the default folder collection, normally in the
  889.    directory $HOME\MAIL.
  890.    
  891.    The location of the following support files may be controlled by
  892.    variables in the personal or global Pine configuration file:
  893.    signature, addressbook (and its index file), postponed messages, and
  894.    newsrc.
  895.    
  896.    PC-Pine uses the following environment variables:
  897.    PINERC
  898.           Overrides default path to pinerc file.
  899.    PINECONF
  900.           Optional path to global pine config file.
  901.    HOME
  902.           If not set, Pine uses the root of the current drive, e.g. C:
  903.    TMP or TEMP
  904.           Specifies location of temporary storage area
  905.    COMSPEC
  906.           Specifies shell for external commands.
  907.    MAILCAPS
  908.           A semicolon delimited list of path names to mailcap files.
  909.  
  910.                             Command Line Arguments
  911.                                        
  912. Pine
  913.  
  914.    Pine and PC-Pine can accept quite a few command-line arguments. Many
  915.    of these arguments overlap with variables in the Pine configuration
  916.    file. If there is a difference, then a flag set in the command line
  917.    takes precedence. Both Pine and PC-Pine expect command line arguments
  918.    to be preceded by the "-" (dash) as normally used by UNIX programs.
  919.    
  920.    [address]
  921.           Send-to: If you put an unqualified string (or strings) in the
  922.           command line, Pine reads them as email addresses. Pine will
  923.           startup in the composer with a message started to the
  924.           person/people specified. Once the message is sent, the Pine
  925.           session closes.
  926.    < file
  927.           Pine will startup in the composer with file read into the body
  928.           of the message. Once the message is sent, the Pine session
  929.           closes.
  930.    -a
  931.           Special anonymous mode for UWIN*.
  932.    -c n
  933.           When used with the -f option, apply the nth context. This is
  934.           used when there are multiple folder collections and you want to
  935.           open a folder not in the primary collection.
  936.    -conf
  937.           Configuration: Prints a sample system configuration file to the
  938.           screen or standard output. To generate an initial system
  939.           configuration file, execute
  940.  
  941.                 pine -conf > /usr/local/lib/pine.conf
  942.           To generate a system configuration file using settings from an
  943.           old system configuration file, execute
  944.  
  945.                 pine -P old-pine.conf -conf > /usr/local/lib/pine.conf
  946.    -create_lu addrbook sort-order
  947.           Create auxiliary index (LookUp) file for addrbook and sort
  948.           addrbook in sort-order, which may be dont-sort, nickname,
  949.           fullname, nickname-with-lists-last, or
  950.           fullname-with-lists-last. Only useful when creating global or
  951.           shared address books.
  952.    -d debug-level
  953.           Debug Level: Sets the level of debugging information written by
  954.           Pine. debug-level can be set to any integer 0-9. A debug level
  955.           of 0 turns off debugging for the session. (Actually there are
  956.           some levels higher than 9, now, but you probably don't want to
  957.           see them.)
  958.    -f folder
  959.           Startup folder: Pine will open this folder in place of the
  960.           standard INBOX.
  961.    -F file
  962.           Open named text file and view with Pine's browser.
  963.    -h
  964.           Help: Prints the list of available command-line arguments to
  965.           the screen.
  966.    -i
  967.           Pine will start up in the FOLDER INDEX screen instead of the
  968.           MAIN MENU.
  969.           Configuration equivalent: initial-keystroke-list=i
  970.    -I a,b,c,...
  971.           Initial Keystrokes: Pine will execute this comma-separated
  972.           sequence of commands upon startup. This allows users to get
  973.           Pine to start in any of its menus/screens. You cannot include
  974.           any input to the composer in the initial keystrokes. The key
  975.           <Return> is represented by a ``CR'' in the keystroke list; the
  976.           spacebar is designated by the letters ``SPACE''. Control keys
  977.           are two character sequences beginning with ``^'', such as
  978.           ``^I''. A tab character is ``TAB''. Function keys are ``F1'' -
  979.           ``F12'' and the arrow keys are ``UP'', ``DOWN'', ``LEFT'', and
  980.           ``RIGHT''.
  981.           Configuration equivalent: initial-keystroke-list
  982.    -k
  983.           Function-Key Mode: When invoked in this way, Pine expects the
  984.           input of commands to be function-keys. Otherwise, commands are
  985.           linked to the regular character keys. This option supported
  986.           only in conjunction with UW Enhanced NCSA telnet.
  987.           Configuration equivalent: use-function-keys included in
  988.           feature-list.
  989.    -l
  990.           Folder-List: With "-l" set, Pine will default to an expanded
  991.           folder list. This means that the FOLDER LIST screen will always
  992.           show all folders in all collections. Default is to show the
  993.           folders in the current collection only.
  994.           Configuration equivalent: expanded-view-of-folders in
  995.           feature-list.
  996.    -n n
  997.           Message-Number: When specified, Pine starts up in the FOLDER
  998.           INDEX screen with the current message being the designated
  999.           message number.
  1000.    -nr
  1001.           Special mode for UWIN*.
  1002.    -o folder
  1003.           Opens the INBOX (or a folder specified via the -f argument)
  1004.           ReadOnly.
  1005.    -p file
  1006.           Uses the named file as the personal configuration file instead
  1007.           of ~/.pinerc or the default PINERC search sequence PC-Pine
  1008.           uses.
  1009.    -P file
  1010.           Uses the named file as the system wide configuration file
  1011.           instead of /usr/local/lib/pine.conf. UNIX Pine only.
  1012.    -pinerc file
  1013.           Output fresh pinerc configuration to file, preserving the
  1014.           settings of variables that the user has made. Use file set to
  1015.           ``-'' to make output go to standard out.
  1016.    -r
  1017.           Restricted Mode: For UNIX Pine only. Pine in restricted mode
  1018.           can only send email to itself. Save and export are limited.
  1019.    -sort key
  1020.           Sort-Key: Specifies the order messages will be displayed in for
  1021.           the FOLDER INDEX screen. Key can have the following values:
  1022.           subject, arrival, date, from, size, orderedsubj,
  1023.           subject/reverse, arrival/reverse, date/reverse, from/reverse,
  1024.           size/reverse, orderedsubj/reverse. The default value is
  1025.           "arrival". The key value reverse is equivalent to
  1026.           arrival/reverse. This option will be expanded in the future to
  1027.           allow sorting on "to" and "cc".
  1028.           Configuration equivalent: sort-key.
  1029.    -z
  1030.           Enable Suspend: When run with this flag, the key sequence
  1031.           ctrl-z will suspend the Pine session.
  1032.           Configuration equivalent: enable-suspend included in
  1033.           feature-list.
  1034.    -option=value
  1035.           Assign value to the config option option. For example,
  1036.           -signature-file=sig1 or -feature-list=signature-at-bottom
  1037.           (Note: feature-list values are additive).
  1038.           
  1039.    * UWIN = University of Washington Information Navigator
  1040.    
  1041. Pico
  1042.  
  1043.    The following command line options are supported in Pico:
  1044.    
  1045.    +n
  1046.           Causes pico to be started with the cursor located n lines into
  1047.           the file. (Note: no space between "+" sign and number)
  1048.           
  1049.    -d
  1050.           Rebind the "delete" key so the character the cursor is on is
  1051.           rubbed out rather than the character to its left.
  1052.           
  1053.    -e
  1054.           Enable file name completion.
  1055.           
  1056.    -f
  1057.           Use function keys for commands. This option supported only in
  1058.           conjunction with UW Enhanced NCSA telnet.
  1059.           
  1060.    -g
  1061.           Enable "Show Cursor" mode in file browser. Cause cursor to be
  1062.           positioned before the current selection rather than placed at
  1063.           the lower left of the display.
  1064.           
  1065.    -k
  1066.           Causes "Cut Text" command to remove characters from the cursor
  1067.           position to the end of the line rather than remove the entire
  1068.           line.
  1069.           
  1070.    -m
  1071.           Enable mouse functionality. This only works when pico is run
  1072.           from within an X Window System "xterm" window.
  1073.           
  1074.    -nn
  1075.           The -nn option enables new mail notification. The n argument is
  1076.           optional, and specifies how often, in seconds, your mailbox is
  1077.           checked for new mail. For example, -n60 causes pico to check
  1078.           for new mail once every minute. The default interval is 180
  1079.           seconds, while the minimum allowed is 30. (Note: no space
  1080.           between "n" and the number)
  1081.           
  1082.    -o dir
  1083.           Sets operating directory. Only files within this directory are
  1084.           accessible. Likewise, the file browser is limited to the
  1085.           specified directory subtree.
  1086.           
  1087.    -rn
  1088.           Sets column used to limit the "Justify" command's right margin.
  1089.           
  1090.    -t
  1091.           Enable "tool" mode. Intended for when pico is used as the
  1092.           editor within other tools (e.g., Elm, Pnews). Pico will not
  1093.           prompt for save on exit, and will not rename the buffer during
  1094.           the "Write Out" command.
  1095.           
  1096.    -v
  1097.           View the file only, disallowing any editing.
  1098.           
  1099.    -w
  1100.           Disable word wrap (thus allow editing of long lines).
  1101.           
  1102.           Note: Pico will break any lines over 255 characters when
  1103.           reading a file, regardless of word wrapping.
  1104.           
  1105.    -x
  1106.           Disable keymenu at the bottom of the screen.
  1107.           
  1108.    -z
  1109.           Enable ^Z suspension of pico.
  1110.           
  1111. Pilot
  1112.  
  1113.    The following command line options are supported in Pilot:
  1114.    
  1115.    -a
  1116.           Display all files including those beginning with a period (.).
  1117.           
  1118.    -f
  1119.           Use function keys for commands. This option supported only in
  1120.           conjunction with UW Enhanced NCSA telnet.
  1121.           
  1122.    -g
  1123.           Enable "Show Cursor" mode. Cause cursor to be positioned before
  1124.           the current selection rather than placed at the lower left of
  1125.           the display.
  1126.           
  1127.    -m
  1128.           Enable mouse functionality. This only works when pilot is run
  1129.           from within an X Window System "xterm" window.
  1130.           
  1131.    -nn
  1132.           The -nn option enables new mail notification. The n argument is
  1133.           optional, and specifies how often, in seconds, your mailbox is
  1134.           checked for new mail. For example, -n60 causes pilot to check
  1135.           for new mail once every minute. The default interval is 180
  1136.           seconds, while the minimum allowed is 30. (Note: no space
  1137.           between "n" and the number)
  1138.           
  1139.    -o dir
  1140.           Sets operating directory. Only files within the specified
  1141.           directory are accessible and browsing is limited to the
  1142.           specified directory subtree.
  1143.           
  1144.    -v
  1145.           Enable single vertical column display.
  1146.           
  1147.    -x
  1148.           Disable keymenu at the bottom of the screen.
  1149.           
  1150.    -z
  1151.           Enable ^Z suspension of pilot.
  1152.  
  1153.                          Configuration and Preferences
  1154.                                        
  1155. Pine Configuration
  1156.  
  1157.    There is very little in Pine which requires compile-time
  1158.    configuration. In most cases, the compiled-in preferences will suit
  1159.    users and administrators just fine. When running Pine on a UNIX
  1160.    system, the default built-in configuration can be changed by setting
  1161.    variables in the system configuration file, /usr/local/lib/pine.conf.
  1162.    Both Pine and PC-Pine also use personal (user-based) configuration
  1163.    files. On UNIX machines, the personal configuration file is the file
  1164.    ~/.pinerc. For PC-Pine systems, the personal configuration file is in
  1165.    $PINERC or $HOME\PINE\PINERC or <PINE.EXE dir>\PINERC.
  1166.    
  1167.    The syntax of a non-list configuration variable is this:
  1168.    
  1169.      <variable> = <value>
  1170.      
  1171.    If the value is absent then the variable is unset. To set a variable
  1172.    to the empty value the syntax is "". This is equivalent to an absent
  1173.    value except that it overrides any system-wide value that may be set.
  1174.    Quotes may be used around any value. All values are strings and end at
  1175.    the end of the line or the closing quote. Leading and trailing space
  1176.    is ignored unless it is included in the quotes. For some variables the
  1177.    only appropriate values are yes and no. There is also a second type of
  1178.    variable, lists. A list is a comma-separated list of values. The
  1179.    syntax for a list is:
  1180.    
  1181.      <variable> = <value> [, <value> , ... ]
  1182.      
  1183.    A list can be continued on subsequent lines by beginning the line with
  1184.    white-space. Both the per-user and global configuration files may
  1185.    contain comments which are lines beginning with a #.
  1186.    
  1187.    For UNIX Pine, there are five ways in which a variable can be set. In
  1188.    decreasing order of precedence they are:
  1189.     1. the system-wide fixed configuration file
  1190.     2. a command line argument
  1191.     3. the personal configuration file (which is usually set from the
  1192.        Config screen)
  1193.     4. the system-wide configuration file
  1194.     5. default in the source code.
  1195.        
  1196.    So, system-wide fixed settings always take precedence over command
  1197.    line flags, which take precedence over per-user settings, which take
  1198.    precedence over system-wide configuration settings, which take
  1199.    precedence over source code defaults. PC-Pine has the same precedence,
  1200.    but it does not use a system-wide fixed configuration file.
  1201.    
  1202.    You may get a sample/fresh copy of the system configuration file by
  1203.    running pine -conf. The result will be printed on the standard output
  1204.    with short comments describing each variable. (The online help in the
  1205.    Setup/Config screen provides longer comments.) If you need to fix some
  1206.    of the configuration variables, you would use the same template for
  1207.    the fixed configuration file as for the regular system-wide
  1208.    configuration file. (If it isn't clear, the purpose of the fixed
  1209.    configuration file is to allow system administrators to restrict the
  1210.    configurability of Pine. It is by no means a bullet-proof method.)
  1211.    Pine will automatically create the personal configuration file the
  1212.    first time it is run, so there is no need to generate a sample. Pine
  1213.    reads and writes the personal configuration file occasionally during
  1214.    normal operation. Users will not normally look at their personal
  1215.    configuration file, but will use the Setup/Config screen from within
  1216.    Pine to set the values in this file. If a user does add additional
  1217.    comments to the personal configuration file they will be retained.
  1218.    Pine always writes this file at least once when running, so you can
  1219.    tell when a user last invoked Pine by checking the date on this file.
  1220.    
  1221.    References to environment variables may be included in the Pine
  1222.    configuration files. The format is $variable or ${variable}. The
  1223.    character ~ will be expanded to the $HOME environment variable.
  1224.    
  1225.    When environment variables are used for Pine settings which take
  1226.    lists, you must have an environment variable set for each member of
  1227.    the list. That is, Pine won't properly recognize an environment
  1228.    variable which is set equal to a comma-delimited list. It is OK to
  1229.    reference unset environment variables in the Pine configuration file,
  1230.    which will expand to nothing.
  1231.    
  1232.      _________________________________________________________________
  1233.                                       
  1234. General Configuration Variables
  1235.  
  1236.    The following is a list of all Pine configuration variables, in
  1237.    alphabetical order. Note that not all variables apply to all versions
  1238.    of Pine and that some variables are only applicable in a system
  1239.    configuration file and some are only applicable in a personal
  1240.    configuration file.
  1241.    
  1242.    addrbook-sort-rule
  1243.           This variable sets up the default address book sorting.
  1244.           Currently, Pine will accept the values dont-sort,
  1245.           fullname-with-lists-last, fullname, nickname-with-lists-last,
  1246.           and nickname. The default is to sort by fullname with lists
  1247.           last.
  1248.    address-book
  1249.           A list of personal address books. Each entry in the list is an
  1250.           optional nickname followed by a pathname or file name relative
  1251.           to the home directory. This list will be added to the
  1252.           global-address-book list to arrive at the complete set of
  1253.           address books.
  1254.    addressbook-formats
  1255.           This option specifies the format that address books are
  1256.           displayed in. Normally, address books are displayed with the
  1257.           nicknames in the first column, the fullnames in the second
  1258.           column, and addresses in the third column. The system figures
  1259.           out reasonable defaults for the widths of the columns. An
  1260.           address book may be given a different format by listing special
  1261.           tokens in the order you want them to display. The possible
  1262.           tokens are NICKNAME, FULLNAME, ADDRESS, FCC, and COMMENT.
  1263.    alt-addresses
  1264.           This option provides a place for you to list alternative email
  1265.           addresses you may have. If set, the option affects the behavior
  1266.           of the Reply command and the "+" symbol in the Folder Index,
  1267.           which denotes that a message has been addressed specifically to
  1268.           you.
  1269.           With respect to Reply, the reply-to-all option will exclude
  1270.           addresses listed here.
  1271.    bugs-additional-data
  1272.           System-wide configuration file only. Program/Script used by
  1273.           "Report Bug" command. Output from the program/script is
  1274.           captured and attached to the bug report.
  1275.    bugs-nickname, bugs-fullname, bugs-address, local-fullname,
  1276.           local-address, suggest-fullname, and suggest-address
  1277.           System-wide configuration file only. These are used by the
  1278.           Report Bug command.
  1279.    character-set
  1280.           This sets the character set used by the terminal. Currently
  1281.           appropriate values are US-ASCII, ISO-8859-1 through ISO-8859-9
  1282.           and ISO-2022-JP. See the section on international character
  1283.           sets for more details. The default is US-ASCII.
  1284.    composer-wrap-column
  1285.           This option specifies an aspect of Pine's Composer. This gives
  1286.           the maximum width that auto-wrapped lines will have. It's also
  1287.           the maximum width of lines justified using the ^J Justify
  1288.           command. The normal default is "74". The largest allowed
  1289.           setting is normally "80" in order to prevent very long lines
  1290.           from being sent in outgoing mail. When the mail is actually
  1291.           sent, trailing spaces will be stripped off of each line.
  1292.    customized-hdrs
  1293.           Add these custom headers when composing. Also possible to add
  1294.           default values to these custom headers or to any of the
  1295.           standard headers. This is a list variable. Each entry in the
  1296.           list is a header name (the actual header name that will appear
  1297.           in the message) followed by an optional colon and value. For
  1298.           example, if a Reply-to header was needed because it was
  1299.           different from the From address, that could be accomplished
  1300.           with:
  1301.  
  1302.     customized-hdrs=Reply-to: fred_flintstone@bedrock.net
  1303.    default-composer-hdrs
  1304.           Show only these headers (by default) when composing a message.
  1305.           This list may include headers defined in the customized-hdrs
  1306.           list.
  1307.    default-fcc
  1308.           The name of the folder to which all outgoing mail goes is set
  1309.           here. The compiled-in default is sent-mail (UNIX) or sentmail
  1310.           (PC). It can be set to "" (two double quotes with nothing
  1311.           between them) to turn off saving copies of outgoing mail. If
  1312.           the default-fcc is a relative file name, then it is relative to
  1313.           your default collection for saves (see folder-collections).
  1314.    default-saved-msg-folder
  1315.           This option determines the default folder name for Saves... If
  1316.           this is not a path name, it will be in the default collection
  1317.           for saves. Any valid folder specification, local or IMAP, is
  1318.           allowed. This default folder only applies when the
  1319.           saved-msg-name-rule (see later in this configuration screen)
  1320.           doesn't override it. Unix Pine default is normally
  1321.           "saved-messages" in the default folder collection. PC-Pine
  1322.           default is "SAVEMAIL" (normally stored as SAVEMAIL.MTX).
  1323.    display-filters
  1324.           This option defines a list of text-filtering commands (programs
  1325.           or scripts) that may be used to filter text portions of
  1326.           received messages prior to their use (e.g., presentation in the
  1327.           "MESSAGE TEXT" display screen). For security reasons, the full
  1328.           path name of the filter command must be specified. See the
  1329.           online help text for further details.
  1330.    download-command
  1331.           This option affects the behavior of the Export command. It
  1332.           specifies a Unix program name, and any necessary command line
  1333.           arguments, that Pine can use to transfer the exported message
  1334.           to your personal computer's disk.
  1335.    download-command-prefix
  1336.           This option is used in conjunction with the Download-command
  1337.           option. It defines text to be written to the terminal emulator
  1338.           (via standard output) immediately prior to starting the
  1339.           download command. This is useful for integrated serial line
  1340.           file transfer agents that permit command passing (e.g.,
  1341.           Kermit's APC method).
  1342.    editor
  1343.           UNIX Pine only. Sets the name of the alternate editor for
  1344.           composing mail (message text only, not headers). It will be
  1345.           invoked with the "^_" command or it will be invoked
  1346.           automatically if the enable-alternate-editor-implicitly feature
  1347.           is set.
  1348.    fcc-name-rule
  1349.           Determines default folder name for fcc when composing.
  1350.           Currently, Pine will accept the values default-fcc,
  1351.           by-recipient, or last-fcc-used. If set to default-fcc, then
  1352.           Pine will use the value defined in the default-fcc variable
  1353.           (which itself has a default) for the Fcc header field. If set
  1354.           to by-recipient, then Pine will use the name of the recipient
  1355.           as a folder name for the fcc. The relevant recipient is the
  1356.           first address in the To field. If set to "last-fcc-used", then
  1357.           Pine will offer to fcc to whatever folder you used previously.
  1358.           In all cases, the field can still be edited after it is
  1359.           initially assigned. If the fcc field in the address book is set
  1360.           for the first To address, that value over-rides any value
  1361.           derived from this rule.
  1362.    feature-list
  1363.           This is a list of features (options) which may be turned on.
  1364.           You may also turn features off (the default) by prepending the
  1365.           characters no- to any of the features. The feature-list is
  1366.           additive. That is, first the system-wide feature-list is read
  1367.           and then the user's feature-list is read. This makes it
  1368.           possible for the system manager to turn some of the features on
  1369.           by default while still allowing the user to cancel that
  1370.           default. However, some of the documentation assumes that all of
  1371.           the features are off by default, so use this with care. In Unix
  1372.           Pine, features can be individually fixed on or off by setting
  1373.           the feature on or off in the system-wide fixed configuration
  1374.           file. Descriptions for most features are omitted here. See the
  1375.           online help for descriptions of each feature (in the
  1376.           Setup/Config screen).
  1377.           Here is the current list of possible features.
  1378.           
  1379.      allow-talk
  1380.      assume-slow-link
  1381.      auto-move-read-msgs
  1382.      auto-open-next-unread
  1383.      auto-unzoom-after-apply
  1384.      auto-zoom-after-select
  1385.      compose-cut-from-cursor
  1386.      compose-maps-delete-key-to-ctrl-d
  1387.      compose-rejects-unqualified-addrs
  1388.      compose-send-offers-first-filter
  1389.      compose-sets-newsgroup-without-confirm
  1390.      delete-skips-deleted
  1391.      disable-keyboard-lock-cmd
  1392.      disable-keymenu
  1393.      disable-config-cmd
  1394.      disable-password-cmd
  1395.      disable-signature-edit-cmd
  1396.      disable-update-cmd
  1397.      enable-8bit-esmtp-negotiation
  1398.      enable-8bit-nntp-posting
  1399.      enable-aggregate-command-set
  1400.      enable-alternate-editor-cmd
  1401.      enable-alternate-editor-implicitly
  1402.      enable-bounce-cmd
  1403.      enable-cruise-mode
  1404.      enable-cruise-mode-delete
  1405.      enable-dot-files
  1406.      enable-dot-folders
  1407.      enable-flag-cmd
  1408.      enable-flag-screen-implicitly
  1409.      enable-full-header-cmd
  1410.      enable-incoming-folders
  1411.      enable-jump-shortcut
  1412.      enable-mail-check-cue
  1413.      enable-mouse-in-xterm
  1414.      enable-suspend
  1415.      enable-tab-completion
  1416.      enable-unix-pipe-cmd
  1417.      enable-verbose-smtp-posting
  1418.      expanded-view-of-addressbooks
  1419.      expanded-view-of-folders
  1420.      expunge-without-confirm
  1421.      fcc-on-bounce
  1422.      include-attachments-in-reply
  1423.      include-header-in-reply
  1424.      include-text-in-reply
  1425.      news-post-without-validation
  1426.      news-read-in-newsrc-order
  1427.      pass-control-characters-as-is
  1428.      preserve-start-stop-characters
  1429.      print-formfeed-between-messages
  1430.      print-offers-custom-cmd-prompt
  1431.      print-index-enabled
  1432.      quell-dead-letter-on-cancel
  1433.      quell-lock-failure-warnings
  1434.      quell-status-message-beeping
  1435.      quit-without-confirm
  1436.      reply-always-uses-reply-to
  1437.      save-aggregates-copy-sequence
  1438.      save-will-quote-leading-froms
  1439.      save-will-not-delete
  1440.      save-will-advance
  1441.      select-without-confirm
  1442.      show-cursor
  1443.      show-selected-in-boldface
  1444.      signature-at-bottom
  1445.      single-column-folder-list
  1446.      tab-visits-next-new-message-only
  1447.      use-current-dir
  1448.      use-function-keys
  1449.      use-sender-not-x-sender
  1450.      user-lookup-even-if-domain-mismatch
  1451.           The four disable- features and the use-function-keys feature
  1452.           are intentionally suppressed from the Config screen, as they
  1453.           are intended for use by system administrators in the
  1454.           system-wide fixed config file. Their meaning should be
  1455.           self-explanatory.
  1456.           The save-aggregates-copy-sequence feature is suppressed from
  1457.           the config screen. This feature will optimize an aggregate copy
  1458.           operation, if possible, by issuing a single COPY command with a
  1459.           list of the messages to be copied. This may save network
  1460.           traffic when the source and destination folders are on the same
  1461.           IMAP server. However, many IMAP servers (including the UW IMAP
  1462.           server) do not preserve the order of messages when this
  1463.           optimization is applied. If this feature is not enabled, or if
  1464.           the folders are on different IMAP servers, or the folders are
  1465.           local and in different formats, Pine will copy each message
  1466.           individually.
  1467.    folder-collections
  1468.           This is a list of one or more collections where saved mail is
  1469.           stored. See the sections describing folder collections and
  1470.           collection syntax for more information. The first collection in
  1471.           this list is the default collection for saves, including
  1472.           default-fcc's.
  1473.    font-name
  1474.           Winsock version of PC Pine only.
  1475.    font-size
  1476.           Winsock version of PC Pine only.
  1477.    forced-abook-entry
  1478.           System-wide Pine configuration file only. Force these address
  1479.           book entries into all writable personal address books.
  1480.    global-address-book
  1481.           A list of shared address books. Each entry in the list is an
  1482.           optional nickname followed by a pathname or file name relative
  1483.           to the home directory. This list will be added to the
  1484.           address-book list to arrive at the complete set of address
  1485.           books. Global address books are defined to be readonly.
  1486.    goto-default-rule
  1487.           This value affects Pine's behavior when you use the Goto
  1488.           command. There are three possible values for this option:
  1489.           
  1490.         inbox-or-folder-in-recent-collection
  1491.                 If your current folder is "Inbox", Pine will offer the
  1492.                 last open folder as the default. If the current folder is
  1493.                 other than "Inbox", "Inbox" is offered as the default.
  1494.                 
  1495.         inbox-or-folder-in-first-collection
  1496.                 The second accepted value is a variation on the default
  1497.                 which again offers "Inbox" if it isn't currently open,
  1498.                 but otherwise offers the most recent folder in the first
  1499.                 collection found in the "FOLDER LIST" screen.
  1500.                 
  1501.         most-recent-folder
  1502.                 The last accepted value simply causes the most recently
  1503.                 opened folder to be offered as the default regardless of
  1504.                 the currently opened folder.
  1505.                 
  1506.           NOTE: The default while a newsgroup is open remains the same;
  1507.           the last open newsgroup.
  1508.    image-viewer
  1509.           This variable names the program to call for displaying parts of
  1510.           a MIME message that are of type IMAGE. If your system supports
  1511.           the mailcap system, you don't need to set this variable.
  1512.    inbox-path
  1513.           This specifies the name of the folder to use for the INBOX.
  1514.           Normally this is unset so the system's default is used. The
  1515.           most common reason for setting this is to open an IMAP mailbox
  1516.           for the INBOX. For example, {imap5.u.example.edu}inbox will
  1517.           open the user's standard INBOX on the mail server, imap5.
  1518.    incoming-archive-folders
  1519.           This is like Read-Message-Folder, only more general. This is a
  1520.           list of folder pairs, with the first separated from the second
  1521.           in the pair by a space. The first folder in a pair is the
  1522.           folder you want to archive, and the second folder is the folder
  1523.           that read messages from the first should be moved to. Depending
  1524.           on how you define the "auto-move-read-messages" setting in the
  1525.           "feature-list", you may or may not be asked when you leave the
  1526.           first folder if you want read messages to be moved to the
  1527.           second folder. In either case, moving the messages means they
  1528.           will be deleted from the first folder.
  1529.           If these are not path names, they will be in the default
  1530.           collection for saves. Any valid folder specification, local or
  1531.           remote (via IMAP), is allowed. There is no default.
  1532.    incoming-folders
  1533.           This is a list of one or more folders other than INBOX that may
  1534.           receive new messages. This list is slightly special in that it
  1535.           is always expanded in the folder lister. In the future, it may
  1536.           become more special. For example, it would be nice if Pine
  1537.           would monitor the folders in this list for new mail.
  1538.    index-format
  1539.           This option specifies the format that folder indexes are
  1540.           displayed in. Normally, the system figures out reasonable
  1541.           defaults for the widths of the columns of the index display. A
  1542.           non-standard display format can be used by listing special
  1543.           tokens in the order you want them to display. The tokens are
  1544.           STATUS, FULLSTATUS, MSGNO, DATE, SIZE, DESCRIPSIZE, SUBJECT,
  1545.           FROMORTO, FROM, and TO. The tokens are separated by spaces.
  1546.           Each of the tokens may also be optionally followed by
  1547.           parentheses with either a number or a percentage inside the
  1548.           parentheses.
  1549.    initial-keystroke-list
  1550.           This is a comma-separated list of keystrokes which Pine
  1551.           executes on startup. Items in the list are usually just
  1552.           characters, but there are some special values. SPACE, TAB, and
  1553.           CR mean a space character, tab character, and a carriage
  1554.           return, respectively. F1 through F12 stand for the twelve
  1555.           function keys. UP, DOWN, LEFT, and RIGHT stand for the arrow
  1556.           keys. Control characters are represented with ^<char>. A
  1557.           restriction is that you can't mix function keys and character
  1558.           keys in this list even though you can, in some cases, mix them
  1559.           when running Pine. A user can always use only character keys in
  1560.           the startup list even if he or she is using function keys
  1561.           normally, or vice versa.
  1562.    kblock-passwd-count
  1563.           System-wide Pine configuration file only. number of times a
  1564.           user will have to enter a password when they run the keyboard
  1565.           lock command in the main menu.
  1566.    last-time-prune-questioned
  1567.           Personal configuration file only. This variable records the
  1568.           month the user was last asked if his or her sent-mail folders
  1569.           should be pruned. The format is yy.mm. This is automatically
  1570.           updated by Pine when the the pruning is done or declined. If a
  1571.           user wanted to make Pine stop asking this question he or she
  1572.           could set this time to something far in the future.
  1573.    last-version-used
  1574.           Personal configuration file only. This is set automatically by
  1575.           Pine. It is used to keep track of the last version of Pine that
  1576.           was run by the user. Whenever the version number increases, a
  1577.           new version message is printed out.
  1578.    mail-check-interval
  1579.           This option specifies, in seconds, how often Pine will check
  1580.           for new mail. If set to zero, new-mail checking is disabled.
  1581.           There is a minimum value, normally 15 seconds.
  1582.    mail-directory
  1583.           This variable was more important in previous versions of Pine.
  1584.           Now it is used only as the default for storing personal folders
  1585.           (and only if there are no folder-collections defined). The
  1586.           default value is ~/mail on UNIX and $HOME\MAIL on a PC.
  1587.    mailcap-search-path
  1588.           This variable is used to replace Pine's default mailcap file
  1589.           search path. It takes one or more file names (full paths must
  1590.           be specified) in which to look for mail capability data.
  1591.    mimetype-search-path
  1592.           This variable is used to replace Pine's default mime.types file
  1593.           search path. It takes one or more file names (full paths must
  1594.           be specified) in which to look for file-name-extension to MIME
  1595.           type mapping data. See the Config Notes for details on Pine's
  1596.           usage of the MIME.Types File.
  1597.    new-version-threshold
  1598.           When a new version of Pine is run for the first time it offers
  1599.           a special explanatory screen to the user upon startup. This
  1600.           option helps control when and if that special screen appears
  1601.           for users that have previously run Pine. It takes as its value
  1602.           a Pine version number. Pine version less than the specified
  1603.           value will supress this special screen while versions equal to
  1604.           or greater than that specified will behave normally.
  1605.    news-active-file-path
  1606.           This option tells Pine where to look for the "active file" for
  1607.           newsgroups when accessing news locally, rather than via NNTP.
  1608.           The default path is usually "/usr/lib/news/active".
  1609.    news-collections
  1610.           This is a list of collections where news folders are located.
  1611.           See the section describing collections for more information.
  1612.    news-spool-directory
  1613.           This option tells Pine where to look for the "news spool" for
  1614.           newsgroups when accessing news locally, rather than via NNTP.
  1615.           The default path is usually "/usr/spool/news".
  1616.    newsrc-path
  1617.           This option overrides the default name Pine uses for your
  1618.           "newsrc" news status and subscription file. If set, Pine will
  1619.           take this value as the full pathname for the desired newsrc
  1620.           file.
  1621.    nntp-server
  1622.           One or more NNTP servers (host name or IP address) which Pine
  1623.           will use for outgoing news. If you read and post news to and
  1624.           from a single NNTP server, you can get away with only setting
  1625.           the nntp-server variable and leaving the news-collections
  1626.           variable unset.
  1627.    normal-background-color
  1628.           PC-Pine only. Currently, Pine will accept the colors black,
  1629.           blue, green, cyan, red, magenta, yellow, or white.
  1630.    normal-foreground-color
  1631.           PC-Pine only. See normal-background-color for possible colors.
  1632.    operating-dir
  1633.           System-wide Pine configuration file only. This names the root
  1634.           of the tree to which the user is restricted when reading and
  1635.           writing folders and files.
  1636.    personal-name
  1637.           Personal configuration file only (not applicable in global
  1638.           config. file). User's full personal name. On UNIX systems, the
  1639.           default is taken from the accounts data base (/etc/passwd).
  1640.    personal-print-command
  1641.           UNIX personal configuration file only. This corresponds to item
  1642.           3 in the printer menu. This variable retains the value of
  1643.           personal-print-command when the printer is set to something
  1644.           other than item 3. The personal-print-command can be set within
  1645.           Pine using the printer setup menu.
  1646.    postponed-folder
  1647.           The folder where postponed messages are stored. The default is
  1648.           postponed-msgs (Unix) or POSTPOND (PC).
  1649.    printer
  1650.           UNIX Pine only. This is the current setting for a user's
  1651.           printer. This variable is set from Pine's printer-setup
  1652.           function. The value must be either
  1653.           + "attached-to-ansi" -or-
  1654.           + the value of personal-print-command -or-
  1655.           + the value of standard-printer from the system-wide
  1656.             configuration.
  1657.    pruned-folders
  1658.           This variable allows you to define a list of one or more
  1659.           folders that Pine will offer to prune for you in the same way
  1660.           it automatically offers to prune your "sent-mail" folder each
  1661.           month. That is, once a month for each folder listed, Pine will
  1662.           offer to move the contents of the folder to a new folder of the
  1663.           same name but with the previous month's date appended. Pine
  1664.           will then look for any such date-appended folder names created
  1665.           for a previous month, and offer each one it finds for deletion.
  1666.           If you decline the first offer, no mail is moved and no new
  1667.           folder is created. Folders listed are assumed to exist, and the
  1668.           archive folders will be created, in the first collection
  1669.           defined by the "folder-collections" variable.
  1670.    read-message-folder
  1671.           If set, mail in the INBOX that has been read but not deleted is
  1672.           moved here, or rather, the user is asked whether or not he or
  1673.           she wants to move it here upon quitting Pine.
  1674.    reply-indent-string
  1675.           This variable specifies an aspect of Pine's Reply command. When
  1676.           a message is replied to and the text of the message is
  1677.           included, that text usually has the string "> " prepended to
  1678.           each line to indicate quoting.
  1679.           This variable specifies a different value for that string. If
  1680.           you wish to use a string which begins or ends with a space,
  1681.           enclose the string in double quotes.
  1682.           You can also include the sender's name in the prepended string.
  1683.           The first occurrence of "_FROM_" in the reply-indent-string
  1684.           will be replaced with the "username" portion of the address
  1685.           being replied to.
  1686.           The normal default is "> ".
  1687.    reverse-background-color
  1688.           PC-Pine only. See normal-background-color for possible colors.
  1689.    reverse-foreground-color
  1690.           PC-Pine only. See normal-background-color for possible colors.
  1691.    saved-msg-name-rule
  1692.           Determines default folder name when saving. Currently, Pine
  1693.           will accept the values "default-folder", "by-sender",
  1694.           "by-from", "by-recipient", or "last-folder-used". If set to
  1695.           default-folder, then Pine will offer the folder
  1696.           "saved-messages" (UNIX) or "SAVEMAIL" (PC) for saving messages.
  1697.           If set to by-from, then Pine will offer to save the message in
  1698.           a folder with the same name as the From, if there is one, or
  1699.           the Sender otherwise. If set to by-sender, then Pine will offer
  1700.           to save the message in a folder with the same name as the
  1701.           Sender, if there is one, or the From otherwise. If set to
  1702.           by-recipient, then Pine will offer to save the message in a
  1703.           folder with the same name as the recipient, which is the
  1704.           newsgroup if this was sent to a newsgroup or the To address if
  1705.           not. If set to "last-folder-used", then Pine will offer to save
  1706.           in whatever folder you used previously.
  1707.    sending-filters
  1708.           This option defines a list of text-filtering commands (programs
  1709.           and scripts) that may be selectively invoked to process a
  1710.           message just before it is sent. If set, the Composer's ^X
  1711.           (Send) command will allow you to select which filter (or none)
  1712.           to apply to the message before it is sent. For security
  1713.           reasons, the full path of the filter program must be specified.
  1714.           See the online help text for further details.
  1715.    sendmail-path
  1716.           System-wide Pine configuration file only. This names the path
  1717.           to an alternative program, and any necessary arguments, to be
  1718.           used in posting mail messages.
  1719.    signature-file
  1720.           Names the file to be included as the signature. This defaults
  1721.           to ~/.signature on UNIX and <PINERC directory>\PINE.SIG on a
  1722.           PC.
  1723.    smtp-server
  1724.           One or more SMTP servers (host name or IP address) which Pine
  1725.           will use for outgoing mail. If not set, Pine passes outgoing
  1726.           email to the sendmail program on the local machine. PC-Pine
  1727.           users must have this variable set in order to send mail as they
  1728.           have no sendmail program. An alternate port may be specified by
  1729.           appending :port to the host name or IP address. See the SMTP
  1730.           Servers section for details.
  1731.    sort-key
  1732.           This variable sets up the default index sorting. The default is
  1733.           to sort by arrival order. It has the same functionality as the
  1734.           -sort command line argument and the $ command in the folder
  1735.           index. If a sort-key is set, then all folders open during the
  1736.           session will have that as the default sort order.
  1737.    speller
  1738.           This option affects the behavior of the ^T (spell check)
  1739.           command in the Composer. It specifies the program invoked by ^T
  1740.           in the Composer. By default, Pine uses the system's "spell"
  1741.           command. Pine will use the command defined by this option (if
  1742.           any) instead. When invoking the spell-checking program, Pine
  1743.           appends a tempfile name (where the message is passed) to the
  1744.           command line.
  1745.    standard-printer
  1746.           System-wide configuration file only. Specifies the command for
  1747.           printer selection number 2 on the printer menu. Unix only.
  1748.    status-message-delay
  1749.           If this is set to a positive number, it causes the cursor to
  1750.           move to the status line whenever a status message is printed
  1751.           and pause there for this many seconds. It will probably only be
  1752.           useful if the show-cursor feature is also turned on.
  1753.    upload-command
  1754.           This option affects the behavior of the Composer's "Read File"
  1755.           (^R in the message body) and "Attach File" (^J in the header)
  1756.           commands. It specifies a Unix program name, and any necessary
  1757.           command line arguments, that Pine can use to transfer files
  1758.           from your personal computer into messages that you are
  1759.           composing.
  1760.    upload-command-prefix
  1761.           This option is used in conjunction with the Upload-command
  1762.           option. It defines text to be written to the terminal emulator
  1763.           (via standard output) immediately prior to starting upload
  1764.           command. This is useful for integrated serial line file
  1765.           transfer agents that permit command passing (e.g., Kermit's APC
  1766.           method).
  1767.    use-only-domain-name
  1768.           Can be set to yes or no. At this point anything but yes means
  1769.           no. If set to yes the first label in the host name will be
  1770.           lopped off to get the domain name and the domain name will be
  1771.           used for outgoing mail and such. That is, if the host name is
  1772.           carson.u.example.edu and this variable is set to yes, then
  1773.           u.example.edu will be used on outgoing mail. Only meaningful if
  1774.           user-domain is NOT set.
  1775.    user-domain
  1776.           Sets the domain or host name for the user, overriding the
  1777.           system host or domain name. See the domain name section.
  1778.    user-id
  1779.           PC-Pine only. Sets the username that is placed on all outgoing
  1780.           messages.
  1781.    viewer-hdrs
  1782.           You may change the default list of headers that are viewed by
  1783.           listing the headers you want to view here. If the headers in
  1784.           your "viewer-hdrs" list are present in the message, then they
  1785.           will be shown. The order of the headers you list will be
  1786.           honored. If the special value "all-except" is included as the
  1787.           first header in the "viewer-hdrs" list, then all headers in the
  1788.           message except those in the list will be shown. The values are
  1789.           all case insensitive.
  1790.    viewer-overlap
  1791.           This option specifies an aspect of Pine's Message Viewing
  1792.           screen. When the space bar is used to page forward in a
  1793.           message, the number of lines specified by the "viewer-overlap"
  1794.           variable will be repeated from the bottom of the screen. That
  1795.           is, if this was set to two lines, then the bottom two lines of
  1796.           the screen would be repeated on the top of the next screen. The
  1797.           normal default value is "2".
  1798.    window-position
  1799.           Winsock version of PC Pine only. Window position in the format:
  1800.           CxR+X+Yn Where C and R are the window size in characters and X
  1801.           and Y are the screen position of the top left corner of the
  1802.           window.
  1803.           
  1804.      _________________________________________________________________
  1805.                                       
  1806. Retired Variables
  1807.  
  1808.    Variables that are no longer used by the current Pine version. When an
  1809.    obsolete variable is encountered, its value is applied to any new
  1810.    corresponding setting and a comment is place before it noting that it
  1811.    is no longer in used. The replaced values at the time of this document
  1812.    include:
  1813.    
  1814.    elm-style-save
  1815.           Replaced by saved-msg-name-rule
  1816.    feature-level
  1817.           Replaced by feature-list.
  1818.    header-in-reply
  1819.           Replaced by include-header-in-reply in the feature-list.
  1820.    old-style-reply
  1821.           Replaced by signature-at-bottom in the feature-list.
  1822.    save-by-sender
  1823.           Replaced by saved-msg-name-rule.
  1824.    show-all-characters
  1825.           No replacement, it always works this way now.
  1826.           
  1827.      _________________________________________________________________
  1828.  
  1829.                     Notes on Configuration and Preferences
  1830.                                        
  1831. Pine in Function Key Mode
  1832.  
  1833.    The standard Pine uses alphabetic keys for most commands, and control
  1834.    keys in the composer. Despite possible appearances, the current
  1835.    bindings are the result of much discussion and thought. All the
  1836.    commands in the composer are single control characters. This keeps
  1837.    things very neat and simple for users. Two character commands in the
  1838.    composer are a possibility, but we're trying to avoid them because of
  1839.    the added complexity for the user.
  1840.    
  1841.    Pine can also operate in a function-key mode. To go into this mode
  1842.    invoke pine -k or (on some UNIX systems) pinef. On a UNIX system, you
  1843.    can link or copy the pine executable to pinef to install pinef.
  1844.    Alternatively, users and systems administrators can set the
  1845.    use-function-keys feature in the personal or system-wide Pine
  1846.    configuration file. The command menus at the bottom of the screen will
  1847.    show F1-F12 instead of the alphabetic commands. In addition, the help
  1848.    screens will be written in terms of function keys and not alphabetic
  1849.    keys.
  1850.    
  1851.    One of the results of using Pine in function-key mode is that users
  1852.    can only choose from twelve commands at any given time. In
  1853.    alphabetic-key mode, a user can press a key for a command (say, q to
  1854.    quit) and that command can be fulfilled. In function-key mode, the
  1855.    command must be visible on the bottom key-menu in order to be used.
  1856.    There are some screens where 34 commands are operational; function-key
  1857.    users can get to all of them, just not all at once.
  1858.    
  1859.      _________________________________________________________________
  1860.                                       
  1861. Domain Settings
  1862.  
  1863.    Pine uses the default domain for a few different tasks. First, it is
  1864.    tacked onto the user-id for outgoing email. Second, it is tacked onto
  1865.    all "local" (unqualified) addresses in the "To:" or "Cc:" fields of
  1866.    messages being composed (unless they are found in the address book).
  1867.    The domain name is also used to generate message-id lines for each
  1868.    outgoing message and to allow Pine to check if an address is that of
  1869.    the current Pine user.
  1870.    
  1871.    Pine determines the domain name according to whichever of these it
  1872.    finds. The list here is in decreasing order of precedence.
  1873.     1. Value of the variable user-domain in the system fixed
  1874.        configuration file
  1875.     2. Value of the variable user-domain in the personal configuration
  1876.        file
  1877.     3. Value of the variable user-domain is the system-wide configuration
  1878.        file
  1879.     4. Value from an external database (DNS, /etc/hosts, NIS) as modified
  1880.        by a system fixed configuration file if use-domain-name-only set
  1881.        to "yes"
  1882.     5. Value from an external database (DNS, /etc/hosts, NIS) as modified
  1883.        by a personal configuration file if use-domain-name-only set to
  1884.        "yes"
  1885.     6. Value from an external database (DNS, /etc/hosts, NIS) as modified
  1886.        by a system configuration file if use-domain-name-only set to
  1887.        "yes"
  1888.     7. Unmodified value (host name) from an external database
  1889.        
  1890.    The easiest way for this system to work is for PC-Pine users and UNIX
  1891.    Pine system administrators to set the user-domain variable. The
  1892.    variable use-only-domain-name is helpful if your site
  1893.    supports/requires hostless addressing, but for some reason you don't
  1894.    want to use the user-domain variable.
  1895.    
  1896.    A new feature in 3.90 is called user-lookup-even-if-domain-mismatch.
  1897.    This will cause the personal name field to be looked up from the
  1898.    password file even if the domain of an address isn't a substring of
  1899.    the local host name. See the online help in the Setup/Config screen
  1900.    for full information.
  1901.    
  1902.      _________________________________________________________________
  1903.                                       
  1904. Syntax for Collections
  1905.  
  1906.    In many environments, it is quite common to have collections of
  1907.    archived mail on various hosts around the network. Using the folder
  1908.    collections facility in Pine, access to these archives is just as
  1909.    simple as access to folders on Pine's local disk.
  1910.    
  1911.    "Collection" is the word we use in Pine to describe a set of folders.
  1912.    A collection corresponds loosely to a "directory" containing mail
  1913.    folders. Folders within a defined collection can be manipulated
  1914.    (opened, saved-to, etc) using just their simple name. Any number of
  1915.    folder collections can be defined, and pine will adjust its menus and
  1916.    prompts to help navigate them.
  1917.    
  1918.    The way collections are defined in Pine is with the folder-collections
  1919.    variable in the Pine configuration file. Folder-collections takes a
  1920.    list of one or more collections, each (optionally) preceded by a
  1921.    user-defined logical name (label). Once collections are defined, Pine
  1922.    adjusts its menus and behavior to allow choosing files by their simple
  1923.    name within the collection. Collections are always defined in the
  1924.    configuration file; there is no time that Pine will ever ask a
  1925.    question which requires a user to input a collection specifier. This
  1926.    might change in the future if/when the Goto command is extended to
  1927.    allow jumping to a collection/directory as well as an individual
  1928.    folder.
  1929.    
  1930.    Consider the following:
  1931.    folder-collections=  Local-Mail      C:\MAIL\[],
  1932.                         Remote-Mail     {imap.u.example.edu}mail/[]
  1933.  
  1934.    The example shows two collections defined (a comma separated list;
  1935.    newlines in the list are OK if there's one or more spaces before the
  1936.    next entry), one local and one remote. Each collection is a
  1937.    space-delimited pair of elements-first an optional logical-name and
  1938.    second the collection specifier. The logical-name can have spaces if
  1939.    it has quotes around it (but keeping the logical name short and
  1940.    descriptive works best). Pine will use the logical-name (if provided)
  1941.    to reference all folders in the collection, so the user never has to
  1942.    see the ugliness of the collection specifier.
  1943.    
  1944.    The collection specifier can be thought of as an extended IMAP format
  1945.    (see the "Remote Folders" section for a description of IMAP format
  1946.    names). Basically, a pair of square-brackets are placed in the fully
  1947.    qualified IMAP path where the simple folder name (the part without the
  1948.    host name and path) would appear. Like IMAP, the path can be either
  1949.    fully qualified (i.e., with a leading '/') or relative to your home
  1950.    directory.
  1951.    
  1952.    An advanced feature of this notation is that a pattern within the
  1953.    square brackets allows the user to define a collection to be a subset
  1954.    of a directory. For example, a collection defined with the specifier:
  1955.  
  1956.         M-Mail          C:MAIL/[m*]
  1957.  
  1958.    will provide a view in the folder lister of all folders in the PC's
  1959.    "C:MAIL" directory that start with the letter 'm' (case insensitive
  1960.    under DOS, of course). Further, the wildcard matching will honor
  1961.    characters trailing the '*' in the pattern.
  1962.    
  1963.    From within Pine, the FOLDER LIST display will be adjusted to allow
  1964.    browsing of the folders in any defined collection. Even more, you'll
  1965.    notice in the Goto and Save commands a pair of sub-commands to rotate
  1966.    through the list of logical collection names, so only a simple name
  1967.    need be input in order to operate on a folder in any collection.
  1968.    
  1969.    The first collection specified in the folder-collections has special
  1970.    significance. That folder is the "default collection for saves". In
  1971.    cases where the user does not specify which collection should be used
  1972.    to save a message, the default collection for saves will be used.
  1973.    Also, if the default-fcc is a relative file name, then it is relative
  1974.    to the default collection for saves.
  1975.    
  1976.    The notion of collections encompasses both email folders and news
  1977.    reading. The variable news-collections uses nearly the same format as
  1978.    folder-collections. Newsgroups can be defined for convenient access
  1979.    via either IMAP or NNTP. There are advantages and disadvantages to
  1980.    both access methods. In the IMAP case, your news environment state is
  1981.    maintained on the server and, thus, will be seen by any client. The
  1982.    downside is that, at the moment, you must have an account on the
  1983.    server. In the NNTP case, server access is mostly anonymous and no
  1984.    state/accounting need be maintained on it. The downside is that each
  1985.    client, for now, must individually maintain news environment state.
  1986.    
  1987.    An example pinerc entry might be:
  1988.      news-collections=  Remote-State    *{news.u.example.edu}[],
  1989.                         Local-State     *{news.u.example.edu/nntp}[]
  1990.  
  1991.    Note that each news collection must be preceded by a '*' to indicate
  1992.    non-mail access. Only newsgroups to which you are subscribed are
  1993.    included in the collection.
  1994.    
  1995.    The pattern matching facility can be applied so as to define a news
  1996.    collection which is a subset of all the newsgroups you subscribe to.
  1997.    For example, this could be a valid collection:
  1998.  
  1999.                         Newsfeed-News   *{news.u.example.edu/nntp}[clari.*]
  2000.  
  2001.    Collection handling is a tough problem to solve in a general way, and
  2002.    the explanation of the syntax is a bit ugly. The upside is, hopefully,
  2003.    that for a little complexity in the Pine configuration file you get
  2004.    simple management of multiple folders in diverse locations.
  2005.    
  2006.      _________________________________________________________________
  2007.                                       
  2008. Syntax for Remote Folders
  2009.  
  2010.    Remote folders are distinguished from local folders by a leading host
  2011.    name bracketed by '{' and '}'. The path and folder name immediately
  2012.    following the closing bracket, '}', is interpreted by the IMAP server
  2013.    and is in a form compatible with that server (i.e., path delimiters
  2014.    and naming syntax relative to that server).
  2015.    
  2016.    Typically, a folder name without any path description is understood to
  2017.    reside in the user's "home directory" (i.e., in some way the user's
  2018.    personal, writable file area), as are incomplete path designations.
  2019.    However, the IMAP specification does not require that unqualified
  2020.    folder names live in one's home directory, so some IMAP servers may
  2021.    require fully qualified names. An example of a remote folder
  2022.    specification would be,
  2023.  
  2024.         {mailhost.cac.washington.edu}mail/saved-messages
  2025.  
  2026.    This example simply specifies a folder named ``saved-messages'' on the
  2027.    imap server ``mailhost.cac.washington.edu'', in the ``mail''
  2028.    subdirectory of the user's home directory. Easy isn't it?
  2029.    
  2030.    To confuse things a bit, qualifiers are permitted within the brackets
  2031.    following the host name. These qualifiers consist of a slash, '/'
  2032.    character followed by a keyword or keyword and value equality, and
  2033.    have the effect of modifying how the connection is made to the host
  2034.    specified. An example of such a specification might be,
  2035.  
  2036.         *{pine.cac.washington.edu/anonymous}updates
  2037.  
  2038.    Another example might be,
  2039.         *{news.u.washington.edu/nntp}comp.mail.mime
  2040.  
  2041.    Both of these examples illustrate a different qualifier. The first,
  2042.    specifying ``anonymous'' access to the IMAP server on
  2043.    ``pine.cac.washington.edu''. The second is interesting in that it
  2044.    specifies an altogether different access method: access via the
  2045.    Network News Transport Protocol (NNTP). Both examples bring to light
  2046.    one remaining subtlety. The leading ``*'' tells pine to treat the
  2047.    remote folder as a Bulletin-Board (i.e., typically a shared, read-only
  2048.    resource) and to adjusts its behavior accordingly.
  2049.    
  2050.      _________________________________________________________________
  2051.                                       
  2052. Sorting a Folder
  2053.  
  2054.    The mail index may be sorted by subject, size, sender, date, or
  2055.    arrival order. Each sort order can also be reversed. The $ command
  2056.    will prompt the user for the sort order. The sort order can also be
  2057.    specified on the command line with the -sort flag or (equivalently)
  2058.    with the sort-key variable in the .pinerc file. When a user changes
  2059.    folders, the sort order will go back to the original sort order. The
  2060.    command line (-sort) or configuration file sort specification
  2061.    (sort-key) changes the original sort order.
  2062.    
  2063.    When a folder is sorted and new mail arrives in the folder it will be
  2064.    inserted in its properly sorted place. This can be a little odd when
  2065.    the folder is sorted by something like the subject. It can also be a
  2066.    little slow if you are viewing a large, sorted INBOX, since the INBOX
  2067.    will have to be re-sorted whenever new mail arrives.
  2068.    
  2069.    The sorts are all independent of case and ignore leading or trailing
  2070.    white space. There are actually two forms of subject sort. One called
  2071.    "Subject" and the other called "OrderedSubj". They both ignore "Re:"
  2072.    at the beginning and "(fwd)" at the end of the subjects. Subject sorts
  2073.    all the subjects alphabetically. OrderedSubj sorts by subjects
  2074.    alphabetically, groups messages with the same subject
  2075.    (pseudo-threads), then sorts the groups by the date of the first
  2076.    message of the group. The sort by sender sorts by the userid, not the
  2077.    full name. The arrival sort is basically no sort at all and the date
  2078.    sort depends on the format of the date. Some dates are in strange
  2079.    formats and are unparsable. The time zone is also taken into account.
  2080.    
  2081.    Sorting large mail folders can be very slow since it requires fetching
  2082.    all the headers of the mail messages. With UNIX Pine, only the first
  2083.    sort is slow since Pine keeps a copy of all the headers. One exception
  2084.    is sorting in reverse arrival order. This is fast because no headers
  2085.    have to be examined. Pine will show progress as it is sorting.
  2086.    
  2087.      _________________________________________________________________
  2088.                                       
  2089. Alternate Editor
  2090.  
  2091.    In the Pine composer you can use any text editor, such as vi or emacs,
  2092.    for composing the message text. The addresses and subject still must
  2093.    be edited using the standard Pine composer. If you include the feature
  2094.    enable-alternate-editor-cmd in your .pinerc you can type ^_ while in
  2095.    the body of the message in the composer and be prompted for the
  2096.    editor. If you also set the editor variable in your .pinerc then ^_
  2097.    will invoke the configured editor when you type it.
  2098.    
  2099.    Turning on the feature enable-alternate-editor-implicitly will
  2100.    automatically invoke the editor you have defined with the editor
  2101.    variable whenever you enter the body of a message you are composing.
  2102.    For example, when you move out of the last header line and into the
  2103.    body of the message, the alternate editor will be automatically
  2104.    invoked.
  2105.    
  2106.    We know that many people would like to use the alternate editor to
  2107.    edit the mail header as well. We considered several designs for this
  2108.    and didn't come up with one that we liked and that was easy to
  2109.    implement. One of the main problems is that you lose access to the
  2110.    address book.
  2111.    
  2112.      _________________________________________________________________
  2113.                                       
  2114. Signatures and Signature Placement
  2115.  
  2116.    If the file ~/.signature (UNIX) or <PINERCdirectory>\PINE.SIG (PC)
  2117.    exists, it will be included in all outgoing messages. It is included
  2118.    before composition starts so that the user has a chance to edit it out
  2119.    if he or she likes. The file name for the signature can be changed by
  2120.    setting the signature-file variable in the .pinerc. There is no way to
  2121.    have Pine include different signatures in different outgoing messages
  2122.    automatically. You can do this by hand, however, by having multiple
  2123.    signature files (.sig1, .sig2, .sig3, etc) and choosing to include (^R
  2124.    in the composer) the correct one for the message being sent.
  2125.    
  2126.    Pine's default behavior encourages a user to put his or her
  2127.    contribution before the inclusion of the original text of the message
  2128.    being forwarded or replied to, This is contrary to some conventions,
  2129.    but makes the conversation more readable when a long original message
  2130.    is included in a reply for context. The reader doesn't have to scroll
  2131.    through the original text that he or she has probably already seen to
  2132.    find the new text. If the reader wishes to see the old message(s), the
  2133.    reader can scroll further into the message. Users who prefer to add
  2134.    their input at the end of a message should set the signature-at-bottom
  2135.    feature in the feature-list. The signature will then be appended to
  2136.    the end of the message after any included text. This feature applies
  2137.    when replying, not when forwarding.
  2138.    
  2139.      _________________________________________________________________
  2140.                                       
  2141. Feature List Variable
  2142.  
  2143.    Pine used to have feature levels for users with different amounts of
  2144.    experience. We found that this was too restrictive. Pine now has a
  2145.    feature-list instead. Each user may pick and choose which features
  2146.    they would like enabled (simple to do in the Setup/Config screen).
  2147.    There is a short on-line help explaining the effect of each of the
  2148.    features in the Setup/Config screen. When the cursor is highlighting a
  2149.    feature, the "?" command will show the help text for that feature.
  2150.    Features don't have values, they are just turned on or off. They are
  2151.    all off by default.
  2152.    
  2153.    The feature-list variable is different from all other configuration
  2154.    variables in that its value is additive. That is, the system-wide
  2155.    configuration file can have some features turned on by default. The
  2156.    user can select other features in their personal configuration file
  2157.    and those features will be added to the set of features turned on in
  2158.    the system-wide configuration file. (With all other configuration
  2159.    variables, the user's values replace the system-wide values.)
  2160.    Likewise, additional features may be set on the command-line with the
  2161.    argument "-feature-list=". These will be added to the others.
  2162.    
  2163.    The treatment of feature-list in the system-wide fixed configuration
  2164.    file is also different from other variables. The system management can
  2165.    fix the value of individual features by placing them in the fixed
  2166.    configuration file. Users will not be able to alter those features,
  2167.    but will still be able to set the other non-restricted features the
  2168.    way they like.
  2169.    
  2170.    Because feature-list is additive, there is a way to turn features off
  2171.    as well as on. Prepending the prefix "no-" to any feature sets it to
  2172.    off. This is useful for over-riding the system-wide default in the
  2173.    personal configuration file or for over-riding the system-wide default
  2174.    or the personal configuration value on the command line. For example,
  2175.    if the system-wide default configuration has the quit-without-confirm
  2176.    feature set, the user can over-ride that (and turn it off) by
  2177.    including no-quit-without-confirm in the personal configuration file
  2178.    or by giving the command line argument
  2179.    -feature-list=no-quit-without-confirm. More features (options) will no
  2180.    doubt continue to be added.
  2181.    
  2182.      _________________________________________________________________
  2183.                                       
  2184. SMTP Servers
  2185.  
  2186.    It is sometimes desireable to set smtp-server=localhost instead of
  2187.    setting sendmail-path to overcome the inability to negotiate ESMTP
  2188.    options when sendmail is invoked with the -t option. Sendmail can also
  2189.    be subject to unacceptable delays due to slow DNS lookups and other
  2190.    problems.
  2191.    
  2192.    It is sometimes desireable to configure an SMTP server on a port other
  2193.    than the default port 25. This may be used to provide an alternate
  2194.    service that is optimized for a particular environment or provides
  2195.    different features from the port 25 server. An example would be a
  2196.    program that negotiates ESMTP options and queues a message, but does
  2197.    not attempt to deliver messages. This would avoid delays frequently
  2198.    encountered when invoking sendmail directly.
  2199.    
  2200.    A typical configuration would consist of
  2201.      * A program that implements the SMTP or ESMTP protocol via stdio.
  2202.      * An entry in /etc/services for the alternate service.
  2203.      * An entry in /etc/inetd.conf for the alternate service.
  2204.      * An entry in /usr/local/lib/pine.conf,
  2205.        /usr/local/lib/pine.conf.fixed or ~/.pinerc.
  2206.        
  2207.      _________________________________________________________________
  2208.                                       
  2209. MIME.Types file
  2210.  
  2211.    Pine's MIME-TYPE support is based on code contributed by Hans Drexler
  2212.    <drexler@mpi.nl>. Pine assigns MIME Content-Types types
  2213.    according to file name extensions found in a system wide files
  2214.    /usr/local/lib/mime.types and /etc/mime.types, and a user specific
  2215.    ~/.mime.types file.
  2216.    
  2217.    In DOS and OS/2, Pine looks in the same directory as the PINERC file
  2218.    and the same dir as PINE.EXE. This is similar to the UNIX situation
  2219.    with personal config info coming before potentially shared config
  2220.    data. An alternate search path can be specified by setting
  2221.    mimetype-search-path variable in the user or system-wide configuration
  2222.    or by setting the MIMETYPES environment variable.
  2223.    
  2224.    These files specify file extensions that will be connected to a mime
  2225.    type. Lines beginning with a '#' character are treated as comments and
  2226.    ignored. All other lines are treated as a mime type definition. The
  2227.    first word is a type/subtype specification. All following words are
  2228.    file extensions belonging to that type/subtype. Words are separated by
  2229.    whitespace characters. If a file extension occurs more than once, then
  2230.    the first definition determines the file type and subtype.
  2231.    
  2232.      _________________________________________________________________
  2233.                                       
  2234. Additional Notes on PC-Pine
  2235.  
  2236.    Below are a few odds and ends worth mentioning about PC-Pine. They
  2237.    have to do with DOS-specific behavior that is either necessary or
  2238.    useful (and sometimes both!).
  2239.    
  2240.    As PC-Pine runs in an environment with limited access control,
  2241.    accounting or auditing, an additional line is automatically inserted
  2242.    into the header of mail messages generated by PC-Pine:
  2243.  
  2244.         X-Sender: <userid>@<imap.host>
  2245.  
  2246.    By popular demand of system administrators, PC-Pine has been modified
  2247.    to prevent sending messages until the user has successfully logged
  2248.    into a remote mail server. Even though PC-Pine cannot prevent users
  2249.    from changing the apparent identity of the sender of a message, the
  2250.    IMAP server login name host name included in the X-Sender line provide
  2251.    some level of traceability by the recipient. However, this should not
  2252.    be considered a rigorous form of authentication. It is extremely
  2253.    lightweight, and is not a replacement for true authentication.
  2254.    
  2255.    Hand in hand with authentication and accounting is user information.
  2256.    Since PC-Pine has no user database to consult for user-id,
  2257.    personal-name, etc., necessary information must be provided by the
  2258.    user/installer before PC-Pine can properly construct the "From"
  2259.    address required for outbound messages. PC-Pine will, by default,
  2260.    prompt for the requisite pieces as they are needed. This information
  2261.    corresponds to the PINERC variables user-id, personal-name,
  2262.    user-domain, and smtp-server.
  2263.    
  2264.    The user is then asked whether or not this information should
  2265.    automatically be saved to the PINERC. This is useful behavior in
  2266.    general, but can lead to problems in a lab or other shared
  2267.    environment. Hence, these prompts and automatic saving of
  2268.    configuration can be turned off on an entry by entry basis by setting
  2269.    any of the above values in the PINERC to the null string (i.e., a pair
  2270.    of double quotes). This means that the user will be prompted for the
  2271.    information once during each pine session, and no opportunity to save
  2272.    them in the PINERC will be offered.
  2273.    
  2274.    Along similar lines, a feature allowing automatic login to the
  2275.    imap-server containing the user's INBOX has also been requested. This
  2276.    feature is not enabled by default, but requires the existence of the
  2277.    file named PINE.PWD in the same directory as the PINERC. Even with the
  2278.    existence of this file, the user must still acknowledge a prompt
  2279.    before the password is saved to the file. If PC-Pine is configured to
  2280.    access several different IMAP servers, each password entered will be
  2281.    kept (associated with the corresponding host name) in memory during
  2282.    the current session, and optionally, in the PINE.PWD file for use in
  2283.    subsequent sessions.
  2284.    
  2285.    WARNING! Use this feature with caution! It effectively makes the
  2286.    user's mail no more secure than the physical security of the machine
  2287.    running PC-Pine. What's more, while the password is cloaked by a mild
  2288.    (some might say, feeble) encryption scheme, it is nonetheless sitting
  2289.    in a file on the PC's disk and subject to cracking by anyone with
  2290.    access to it. BEWARE!
  2291.    
  2292.    Another feature of DOS is the lack of standard scratch area for
  2293.    temporary files. During the course of a session, PC-Pine may require
  2294.    numerous temporary files (large message texts, various caches, etc.).
  2295.    Where to create them can be a problem, particularly when running under
  2296.    certain network operating systems. PC-Pine observes the TMP and TEMP
  2297.    environment variables, and creates temporary files in the directory
  2298.    specified by either. In their absence, PC-Pine creates these files in
  2299.    the root of the current working drive.
  2300.  
  2301.                                Behind the Scenes
  2302.                                        
  2303.    Many people ask how certain Pine features are implemented. This
  2304.    section outlines some of the details.
  2305.    
  2306. Address Books
  2307.  
  2308.    The address book file is named, by default, .addressbook in the user's
  2309.    Unix home directory, or in the case of PC-Pine, ADDRBOOK, in the save
  2310.    directory as the PINERC file. There may be more than one address book,
  2311.    and the default name can be over-ridden via an entry in any of the
  2312.    Pine configuration files. The two configuration variables address-book
  2313.    and global-address-book are used to specify the file names of the
  2314.    address books. Each of these variables is a list variable. The total
  2315.    set of address books for a user is the combination of all the address
  2316.    books specified in these two lists. Each entry in the list is an
  2317.    optional nickname followed by a file name. The nickname is everything
  2318.    up to the last space before the file name. The global-address-book
  2319.    list will typically be configured in the system-wide configuration
  2320.    file, though a user may over-ride it like most other variables.
  2321.    Address books which are listed in the global-address-book variable are
  2322.    forced read-only, and are typically shared among multiple users.
  2323.    
  2324.    Address books are simple text files with lines in the format:
  2325.    
  2326.      <nickname>TAB<fullname>TAB<address>TAB<fcc>TAB<comments>
  2327.      
  2328.    The last two fields are optional. A "line" may be made up of multiple
  2329.    actual lines in the file by using continuation lines, which are lines
  2330.    beginning with SPACE characters. The line breaks may be after TABS or
  2331.    in between addresses in a distribution list.
  2332.    
  2333.    Nicknames (the first field) are short names that the user types
  2334.    instead of typing in the full address. There are several characters
  2335.    which aren't allowed in nicknames in order to avoid ambiguity when
  2336.    parsing the address (for example: spaces, commas, "@", ...).
  2337.    
  2338.    The fullname field is usually stored as Last_name, First_name, in
  2339.    order that a sort on the fullname field comes out right. If there is a
  2340.    comma in the fullname, Pine will flip the first and last name around
  2341.    and get rid of the comma when using the entry in a composition. It
  2342.    isn't required that there be a comma, that's only useful if the user
  2343.    wants the entries to sort on last names.
  2344.    
  2345.    The address field takes one of two forms, depending on whether the
  2346.    entry is a single (simple) address or a distribution list. For a
  2347.    simple entry, the address field is the email-address part of the
  2348.    address, i.e., the part that goes inside the brackets (<>). It is
  2349.    combined with the fullname field to form the complete address. For a
  2350.    distribution list, the <address> is in the format:
  2351.    
  2352.      "(" <address>, <address>, <address>, ... ")"
  2353.      
  2354.    Unlike the simple entry case, each of the addresses in a list can be a
  2355.    full RFC 822 address with fullname included, or it may be just the
  2356.    same as in the simple case. This way you can have a list which
  2357.    includes the fullnames of all the list members. In both the simple and
  2358.    list cases, addresses may also be other nicknames which appear in this
  2359.    address book or in one of the other address books. (Those nicknames
  2360.    are searched for by looking through the address books in the order
  2361.    they appear in the address book screen, with the first match winning.)
  2362.    Lists may be nested. If addresses refer to each other in a loop this
  2363.    is detected and flagged. The address will be changed to "**** address
  2364.    loop ****".
  2365.    
  2366.    The optional fcc field is a folder name, just like the fcc field in
  2367.    the composer headers. If the first address in the To field of a
  2368.    composition comes from an address book entry with an fcc field, then
  2369.    that fcc is placed in the fcc header in the composer.
  2370.    
  2371.    The comments field is just a free text field for storing comments
  2372.    about an entry. Neither the fcc nor the comments field is normally
  2373.    shown on the screen in the address book screen. You can only see them
  2374.    by Editing them. You may also search them with the WhereIs command.
  2375.    
  2376.    The address book is displayed in the order that it is sorted in the
  2377.    file. When the user chooses a different sorting criterion, the file is
  2378.    actually sorted, not just the view of the file.
  2379.    
  2380.    When the address book is written out, it is first written to a
  2381.    temporary file and if that write is successful it is renamed
  2382.    correctly. This guards against errors writing the file that might
  2383.    destroy the whole address book. The address book is re-written after
  2384.    each change.
  2385.    
  2386.    The end-of-line character(s) in the address book file are those native
  2387.    to the system writing it. So it is <LF> on Unix and <CR><LF> on PC's.
  2388.    However, both Unix and PC versions of Pine can read either format, so
  2389.    it should be possible to share a read-only address book among the two
  2390.    populations (using NFS, for example). The end-of-line character for
  2391.    the LookUp file is always just <LF>, even on a PC. There is not
  2392.    currently any method built into Pine to access a remote address book
  2393.    (through IMAP or something like that). The only sharing possible is
  2394.    via some external remote file system or copying. It is very likely
  2395.    that a future version of Pine will be able to access remote address
  2396.    books using IMSP, when that becomes standardized and available.
  2397.    
  2398.      _________________________________________________________________
  2399.                                       
  2400.   Address Book Lookup File
  2401.   
  2402.    Starting in 3.90 there is an additional file for each address book,
  2403.    called the LookUp file. It usually has the same name as the address
  2404.    book file with the suffix ".lu" appended. (It might have a different
  2405.    name if a file name length restriction prohibited that name.) This
  2406.    file is created and maintained by Pine. Its purpose is to speed up
  2407.    lookups for large address books and to reduce memory requirements for
  2408.    large address books. A fairly detailed description of how it is used
  2409.    is given in src/pine/adrbklib.h.
  2410.    
  2411.    The lookup file changes whenever the address book itself is changed.
  2412.    If it doesn't exist, Pine attempts to create it. If Pine doesn't have
  2413.    permission to create the lookup file with the standard name, it will
  2414.    create a temporary version in a temp directory. You want to avoid this
  2415.    since it would have to be rebuilt every time Pine was run, and
  2416.    rebuilding takes a significant time for a large address book. So, if
  2417.    you're going to have a shared address book in a read-only directory,
  2418.    it is highly desirable to create the lookup file so that the users
  2419.    sharing it won't have to each create a copy in a temp directory. You
  2420.    can do that by running Pine and accessing the address book under a
  2421.    user id which does have permission to write the file (root, for
  2422.    example) or by using the -create_lu command line argument to Pine (as
  2423.    root, still). If users may be using a shared address book that needs
  2424.    updating, it is best to move the old address book to another name
  2425.    rather than copying over it. It is also best to make the lookup file
  2426.    for the new addrbook before moving it and the address book file into
  2427.    place, otherwise users may get stuck initializing the new file.
  2428.    
  2429.    An effort is made to detect that an address book has been changed by
  2430.    another process. If a change is detected, the address book will be
  2431.    closed down and a new open will be attempted. If the new lookup file
  2432.    is in place when the open is tried, it will work smoothly. In normal
  2433.    operation (lookups and browsing the address book) the check to see if
  2434.    it has changed is just a heuristic to notice if things seem right. It
  2435.    isn't more rigorous because it needs to be fast. When a lookup is
  2436.    done, an offset into the address book is gotten from the LookUp file
  2437.    and a seek into the address book is done. It will check to see if the
  2438.    preceding character is an end-of-line character, which it should be.
  2439.    If it isn't, it figures it needs to rebuild the LookUp file. When an
  2440.    address book is about to be changed, a more fool-proof check is made.
  2441.    Several things in the file are checked to see that it is a LookUp file
  2442.    (magic number, size, ...) and that it is whole. Then, a timestamp in
  2443.    the LookUp file is compared to the mtime of the address book. If the
  2444.    timestamp is later than the mtime, everything is ok, otherwise, the
  2445.    address book has been changed and the new change is aborted.
  2446.    
  2447.    The address book code has been completely rewritten for 3.90 and
  2448.    production experience with shared address books is nil at the time of
  2449.    this writing. We expect there may be some changes as experience is
  2450.    gained, and that some new tools may emerge (scripts to convert
  2451.    password files to shared address books, for example).
  2452.    
  2453.      _________________________________________________________________
  2454.                                       
  2455. Checkpointing
  2456.  
  2457.    Periodically Pine will save the whole mail folder to disk to prevent
  2458.    loss of any mail or mail status in the case that Pine gets
  2459.    interrupted, disconnected, or crashes. The period of time Pine waits
  2460.    to do the checkpoint is calculated to be minimally intrusive. The
  2461.    timing can be changed (but usually isn't) at compile time. Folder
  2462.    checkpointing happens for both local folders and those being accessed
  2463.    with IMAP. The delays are divided into three categories:
  2464.    
  2465.    Good Time: 1.5i
  2466.           This occurs when Pine has been idle for more than 30 seconds.
  2467.           In this case Pine will checkpoint if 12 changes to the file
  2468.           have been made or at least one change has been made and a
  2469.           checkpoint hasn't been done for five minutes.
  2470.    Bad Time: 1.5i
  2471.           This occurs just after Pine has executed some command. Pine
  2472.           will checkpoint if there are 36 outstanding changes to the mail
  2473.           file or at least one change and no checkpoint for ten minutes.
  2474.    Very Bad Time: 1.5i
  2475.           Done when composing a message. In this case, Pine will only
  2476.           checkpoint if at least 48 changes have been made or one change
  2477.           has been made in the last twenty minutes with no checkpoint.
  2478.           
  2479.      _________________________________________________________________
  2480.                                       
  2481. Debug Files
  2482.  
  2483.    If UNIX Pine is compiled with the compiler DEBUG option on (the
  2484.    default), then Pine will produce debugging output to a file. The file
  2485.    is normally .pine-debugX in the user's home directory where X goes
  2486.    from 1 to 4. Number 1 is always the most recent session and 4 the
  2487.    oldest. Four are saved because often the user has gone in and out of
  2488.    Pine a few times after a problem has occurred before the expert
  2489.    actually gets to look at it. The amount of output in the debug files
  2490.    varies with the debug level set when Pine is compiled and/or as a
  2491.    command line flag. The default is level 2. This shows very general
  2492.    things and records errors. Level 9 produces copious amounts of output
  2493.    for each keystroke.
  2494.    
  2495.    PC-Pine creates a single debug file named PINEDEBG.TXT in the same
  2496.    directory as the PINERC file.
  2497.    
  2498.      _________________________________________________________________
  2499.                                       
  2500. Filters
  2501.  
  2502.    Pine is not designed to process email messages as they are delivered;
  2503.    rather Pine depends on the fact that some other program (sendmail,
  2504.    etc) will deliver messages and Pine simply reads the email folders
  2505.    which that "other" program creates. For this reason, Pine cannot
  2506.    filter incoming email into different folders. It can, however, work
  2507.    alongside most of the programs available over the Internet which
  2508.    perform this task. Pine is known to operate successfully with the Elm
  2509.    filter program and with Procmail.
  2510.    
  2511.    Design changes introduced in Pine 3.8x facilitate Pine users filtering
  2512.    email. You still have to get a filtering program and configure it
  2513.    correctly, but Pine now allows users to specify a set of
  2514.    incoming-folders. Pine will separate out all the folders listed as
  2515.    incoming-folders and offer convenient access to these. We hope that in
  2516.    the future Pine will be able to offer new message counts for all of
  2517.    the incoming folders.
  2518.    
  2519.      _________________________________________________________________
  2520.                                       
  2521. Folder Formats and Name Extensions
  2522.  
  2523.    A folder is a group of messages. The default format used by Unix Pine
  2524.    is the Berkeley mail format. It is also used by the standard mail
  2525.    command and by elm. Unix Pine also understands message folders in
  2526.    other formats, such as Tenex, MH, MMDF, Carmel, and Netnews. (For more
  2527.    information about the carmel format, see the directory
  2528.    ./contrib/carmel in the Pine distribution.)
  2529.    
  2530.    PC-Pine reads and writes local (PC) folders in a special format
  2531.    similar to the Tenex format. Near as we can tell, PC-Pine is the only
  2532.    program to use this format. Beginning with version 3.90, PC-Pine
  2533.    includes a Read-Only driver for the Berkeley mailbox format in
  2534.    addition. That means that you can import Unix mail folders, or mount
  2535.    them via NFS or SMB, and PC-Pine can read them --but not modify them.
  2536.    
  2537.    Extensions. In the past, file name extensions have been significant in
  2538.    both Unix Pine and PC-Pine, but this has caused more problems than it
  2539.    solved. Therefore, on Unix Pine extensions no longer have any special
  2540.    meaning, and this is the trend for PC-Pine as well.
  2541.    
  2542.    By default, PC-Pine adds ".MTX" to the name of any local (PC) folders
  2543.    that are referenced, and suppresses the extension from the Folder List
  2544.    display. Now that PC-Pine can read more than one folder format, the
  2545.    MTX extension no longer implies a particular format, and is largely
  2546.    irrelevant. By using the "folder_extension" option, you can change
  2547.    this behavior. In particular, you may set "folder-extension" to the
  2548.    "null string" which tells PC-Pine to neither add nor hide-from-view
  2549.    *any* folder name extension.
  2550.    
  2551.    The reason you might wish to over-ride the MTX default is that recent
  2552.    versions of PC-Pine have the ability to open (albeit READ-ONLY) normal
  2553.    Unix mail folders. Since it might be inconvenient to rename all of
  2554.    them to have an MTX extension, it is possible with this option to
  2555.    switch PC-Pine's behavior so that such folders can be seen and
  2556.    accessed without changing their names. However, doing this means that
  2557.    your existing PC-Pine local folders will have apparently changed their
  2558.    names. For example, if you had a local folder named "FOO" it will now
  2559.    appear in the Folder List as "FOO.MTX". If you wish to save additional
  2560.    messages to that folder, you will need to enter the full name,
  2561.    "FOO.MTX" at the Save prompt. Likewise for GOTO.
  2562.    
  2563.    If you wish to permanently avoid having to deal with folder name
  2564.    extensions, you will need to set this option to the null string by
  2565.    entering two double- quote marks, and you will need to rename your
  2566.    existing local folders to not have an MTX extension. In DOS this can
  2567.    be done in one command, once you have changed to your mail directory:
  2568.    RENAME *.MTX *.
  2569.    
  2570.    We don't know why you might wish to, but you could also use this
  2571.    option to tell PC-Pine to use an extension other than MTX. In this
  2572.    case, enter the three characters you desire to use in lieu of "MTX".
  2573.    Note that your existing folders will need to be renamed to correspond
  2574.    to this new extension.
  2575.    
  2576.    Berkeley Mail Format
  2577.           This format comes to us from the ancient UNIX mail program,
  2578.           /bin/mail. (Note that this doesn't have anything to do with
  2579.           Berkeley, but we call it the Berkeley mail file format anyway.)
  2580.           This program was actually used to interactively read mail at
  2581.           one time, and is still used on many systems as the local
  2582.           delivery agent. In the Berkeley mail format, a folder is a
  2583.           simple text file. Each message (including the first) must start
  2584.           with a separator line which takes approximately the form:
  2585.           
  2586.      From juser@u.example.edu Wed Aug 11 14:32:33 1993
  2587.    
  2588.           Each message ends with two blank lines. There are actually
  2589.           several different variations in the date part of the string,
  2590.           twenty at last count. Because of the format of the separators,
  2591.           lines in the mail message beginning with "From ", space
  2592.           included, risk being confused as message separator lines. Some
  2593.           mail programs will interpret any line beginning with "From " as
  2594.           a message separator, while others --including Pine-- will not
  2595.           be confused unless the line really looks like a message
  2596.           separator, complete with address and date. Such lines will be
  2597.           modified to begin with ">From ". In deference to other mail
  2598.           programs, you may also set the "save-will-quote-leading-froms"
  2599.           feature, in which case any line beginning with "From " will be
  2600.           modified as above. If you see this occasionally in incoming
  2601.           mail messages, the culprit is not Pine but the message delivery
  2602.           program being used at your site.
  2603.           You can fool Pine into thinking a file is a mail folder by
  2604.           copying a suitable message separator from a real folder to the
  2605.           beginning of the file and wherever you want message boundaries.
  2606.           The vast majority of INBOXes Pine reads and folders it writes
  2607.           are of this format.
  2608.    Tenex and MTX Formats
  2609.           Like the Berkeley format, the Tenex folder format uses a single
  2610.           file per folder. Historically, the name of Tenex-format folders
  2611.           ended with .txt, but this rule is no longer enforced. The file
  2612.           format consists of a header line followed by the message text
  2613.           for each message. The header is in one of two forms:
  2614.           
  2615.      dd-mmm-yy hh:mm:ss-zzz,n;ffffffffffff
  2616.      dd-mmm-yyyy hh:mm:ss sssss,n;ffffffffffff
  2617.    
  2618.           and is immediately followed by a newline (and the message
  2619.           text).
  2620.           
  2621.      The fields in the formats are:
  2622.      dd two-digit day of month (leading space if a single-digit day)
  2623.      mmm three-letter English month name (Jan, Feb, etc.)
  2624.      yy two-digit year in 20th century (obsolete)
  2625.      yyyy four-digit year
  2626.      hh two-digit hour in 24-hour clock (leading zero if single-digit)
  2627.      mm two-digit minute (leading zero)
  2628.      ss two-digit second (leading zero)
  2629.      zzz three-letter North American time zone (obsolete)
  2630.      sssss signed four-digit international time zone as in RFC 822
  2631.      n one or more digits of the size of the following message in
  2632.      bytes
  2633.      ffffffffffff
  2634.      twelve-digit octal flags value
  2635.           Punctuation is as given above.
  2636.    
  2637.           The time in the header is the time that message was written to
  2638.           the folder. The flags are interpreted as follows: the high
  2639.           order 30 bits are used to indicate user flags, the next two
  2640.           bits are reserved for future usage, the low four bits are used
  2641.           for system flags (010 = answered, 04 = flagged urgent, 02 =
  2642.           deleted, 01 = seen).
  2643.    
  2644.           If a Tenex-format (or empty) file named mail.txt exists in a
  2645.           Pine user's home directory, this triggers special processing in
  2646.           Pine. When INBOX is opened, mail is automatically moved from
  2647.           /usr/spool/mail into mail.txt in the user's home directory.
  2648.    
  2649.           The format used by PC-Pine is identical to the Tenex format,
  2650.           with two exceptions: the folder name ends with .MTX instead of
  2651.           .txt (this is a requirement in the MTX format), and DOS-style
  2652.           CR/LF newlines are used instead of UNIX-style LF newlines.
  2653.    Netnews Format
  2654.           The netnews format is a read-only format which uses directories
  2655.           under /usr/spool/news as folders. The /usr/spool/news/ prefix
  2656.           is removed and all subsequent ``/'' (slash) characters are
  2657.           changed to ``.'' (period). For example, the netnews folder name
  2658.           comp.mail.misc refers to the directory name
  2659.           /usr/spool/news/comp/mail/misc. In addition, the news folder
  2660.           name must appear in the file /usr/lib/news/active for it to be
  2661.           recognized. Individual messages are stored as files in that
  2662.           directory, with file names being the ASCII form of a number
  2663.           assigned to that message.
  2664.           
  2665.      _________________________________________________________________
  2666.                                       
  2667. Folder Locking
  2668.  
  2669.    There are two kinds of locking which Pine has to worry about. The
  2670.    first might be called program-contention locking. This affects the
  2671.    times when a program is performing actual updates on a folder. An
  2672.    update might be a message delivery program appending a message
  2673.    (sendmail delivering a message to an INBOX), status changes
  2674.    (checkpoints by Pine every few minutes) or deletion of messages (an
  2675.    expunge in Pine). For moderate sized mail messages, these operations
  2676.    should not last for more than a few seconds. The second kind of
  2677.    locking has to do with user-contention situations. This would be the
  2678.    case when one folder is shared by a group of people or even when one
  2679.    person starts multiple email sessions all of which access the same
  2680.    folders and INBOX.
  2681.    
  2682.    There are two standard locking mechanisms which handle
  2683.    program-contention locking. To be on the safe side, Pine implements
  2684.    both of them. The older mechanism places a file xxxx.lock (where xxxx
  2685.    is the name of the file being locked) in the same directory as the
  2686.    file being locked. This makes use of the fact that directory
  2687.    operations are atomic in UNIX and mostly works across NFS. There are
  2688.    involved algorithms used to determine if a lock has been held for an
  2689.    excessive amount of time and should be broken. The second
  2690.    program-contention locking mechanism uses the flock() system call on
  2691.    the mailbox. This is much more efficient and the locks can't get stuck
  2692.    because they go away when the process that created them dies. This is
  2693.    usually found on 4BSD and related machines.
  2694.    
  2695.    In addition to these, Pine--through the c-client library--provides
  2696.    robust locking which prevents several users (or several instances of
  2697.    the same user) having a mail file open (for update) at once. This
  2698.    user-contention lock is held the entire time that the folder is in
  2699.    use.
  2700.    
  2701.    With IMAPd 7.3(63) and Pine 3.84 and higher, the second Pine session
  2702.    which attempts to open a particular folder (usually INBOX) with Pine
  2703.    will ``win''and That is to say, the second session will have
  2704.    read/write access to the folder. The first user's folder will become
  2705.    read-only. (Note that this is exactly the opposite of the behavior
  2706.    prior to Pine 3.84 where the second open was read-only. Having the
  2707.    latest open be read-write seems to match more closely with what users
  2708.    would like to have happen in this situation.) Pine's additional
  2709.    locking is only effective against multiple uses of Pine or other
  2710.    programs using the c-client library, such as MailManager, ms, IMAPd
  2711.    and a few others. Beginning with Pine 3.85, there is an -o command
  2712.    line flag to intentionally open a mailbox read-only.
  2713.    
  2714.    Pine locking on UNIX systems works by creating lock files in /tmp of
  2715.    the form \usr\spool\mail\joe. The system call flock() is then used on
  2716.    these files; the existence of the file alone does not constitute a
  2717.    lock. This lock is created when the folder is opened and destroyed
  2718.    when it is closed. When the folder is actually being written, the
  2719.    standard UNIX locks are also created.
  2720.    
  2721.    If a folder is modified by some other program while Pine has it open,
  2722.    Pine will give up on that mail file, concluding it's best not to do
  2723.    any further reads or writes. This can happen if another mailer that
  2724.    doesn't observe Pine's user-contention locks (e.g. elm or mail) is run
  2725.    while Pine has the mail folder open. Pine checkpoints files every few
  2726.    minutes, so little data can be lost in these situations.
  2727.    
  2728.    PC-Pine does not do any folder locking. It depends on IMAP servers to
  2729.    handle locking of remote folders. It is assumed that only one Pine
  2730.    session can be running on the PC at a time, so there is no contention
  2731.    issue around folders on the PC itself.
  2732.    
  2733.      _________________________________________________________________
  2734.                                       
  2735. INBOX and Special Folders
  2736.  
  2737.    The INBOX folder is treated specially. It is normally kept open
  2738.    constantly so that the arrival of new mail can be detected. The name
  2739.    INBOX refers to wherever new mail is retrieved on the system. If the
  2740.    inbox-path variable is set, then INBOX refers to that. IMAP servers
  2741.    understand the concept of INBOX, so specifying the folder
  2742.    {imap.u.example.edu}INBOX is meaningful. The case of the word INBOX is
  2743.    not important, but Pine tends to display it in all capital letters.
  2744.    
  2745.    The folders for sent mail and saved messages folders are also somewhat
  2746.    special. They are automatically created if they are absent and
  2747.    recreated if they are deleted.
  2748.    
  2749.      _________________________________________________________________
  2750.                                       
  2751. Internal Help Files
  2752.  
  2753.    The file pine.hlp in the pine subdirectory of the distribution
  2754.    contains all the help text for Pine. On UNIX, it is compiled right
  2755.    into the Pine binary as strings. This is done to simplify installation
  2756.    and configuration. The pine.hlp file is in a special format that is
  2757.    documented at the beginning of the file. It is divided into sections,
  2758.    each with a name that winds up being referenced as a global variable.
  2759.    Some special formatting rules are used to keep things lined up and to
  2760.    allow for substitutions in the help text depending on whether the Pine
  2761.    session uses function keys or the standard alphabetic/mnemonic keys.
  2762.    This file is processed by two awk scripts and turned into C files that
  2763.    are compiled into Pine.
  2764.    
  2765.    This scheme can increase efficiency because Pine can be compiled to
  2766.    have the strings as part of shared, read-only text. Rather than each
  2767.    process having to read in the help text from a file, the strings are
  2768.    shared by all executing processes on the machine and demand paged.
  2769.    This works on machines that have separate instruction and data space,
  2770.    but is only fully implemented in the NeXT (tested) and Dynix (not
  2771.    tested) ports.
  2772.    
  2773.    PC-Pine, which tries to run on machines with as little as 640k of
  2774.    memory, leaves the Pine help text out of the executable. PINE.EXE,
  2775.    PINE.HLP, and PINE.NDX are all needed for PC-Pine's help system.
  2776.    
  2777.      _________________________________________________________________
  2778.                                       
  2779. International Character Sets
  2780.  
  2781.    While Pine was designed in the U.S. and used mostly for
  2782.    English-language correspondence, it is a goal for Pine to handle email
  2783.    in almost any language. Many sites outside of the U.S. run Pine in
  2784.    their native language. The default character set for Pine is US-ASCII.
  2785.    That can be changed in the personal or system-wide configuration file
  2786.    with the variable character-set.
  2787.    
  2788.    When reading incoming email, Pine allows all character sets to pass
  2789.    through. Pine doesn't actually display the characters but simply
  2790.    passes them through; it is up to the actual display device to show the
  2791.    characters correctly. When composing email, Pine will accept input in
  2792.    any language and tag the message according to the character-set
  2793.    variable. Again, it is up to the input device to generate the correct
  2794.    sequences for the character set being used.
  2795.    
  2796.    With the exception of UNICODE-1-1-UTF-7, the outgoing message is
  2797.    checked to see if it is all US-ASCII text (and contains no escape
  2798.    characters). In that case, the text will be labeled as US-ASCII even
  2799.    if the character-set variable is set to something else. The theory is
  2800.    that every reasonable character set will have US-ASCII as a subset,
  2801.    and that it makes sense to label the text with the
  2802.    lowest-common-denominator label so that more mailers will be able to
  2803.    display it. Text in the UNICODE-1-1-UTF-7 character set is never
  2804.    re-labelled as US-ASCII.
  2805.    
  2806.    BUG: If you prepare a UNICODE-1-1 document and read it into the
  2807.    composer with ^R, Pine may mistreat it. If your document, when
  2808.    misviewed as 8-bit bytes, does not contain any individual bytes
  2809.    greater than 0x7f base 16, then pine will re-label your outgoing
  2810.    message as US-ASCII, even if your message is really in Unicode
  2811.    Cyrillic, Arabic, or Thai. On the other hand, if your UNICODE-1-1,
  2812.    when misviewed as 8-bit bytes, does contain at least one individual
  2813.    byte greater than 0x7f base 16, as is likely for Unicode
  2814.    French/German/Spanish, Greek, Japanese, and Chinese, then pine will
  2815.    retain the UNICODE-1-1 label.
  2816.    
  2817.    The character sets are:
  2818.    
  2819.      US-ASCII Standard 7 bit English characters
  2820.      ISO-8859-1 8 bit European "latin 1" character set
  2821.      ISO-8859-2 8 bit European "latin 2" character set
  2822.      ISO-8859-3 8 bit European "latin 3" character set
  2823.      ISO-8859-4 8 bit European "latin 4" character set
  2824.      ISO-8859-5 8 bit Latin and Cyrillic
  2825.      ISO-8859-6 8 bit Latin and Arabic
  2826.      ISO-8859-7 8 bit Latin and Greek
  2827.      ISO-8859-8 8 bit Latin and Hebrew
  2828.      ISO-8859-9 8 bit European "latin 5" character set
  2829.      ISO-8859-10 8 bit European "latin 6" character set
  2830.      KOI8-R 8 bit Latin and Russian
  2831.      VISCII 8 bit Latin and Vietnamese
  2832.      ISO-2022-JP Latin and Japanese
  2833.      ISO-2022-KR Latin and Korean
  2834.      UNICODE-1-1 Unicode
  2835.      UNICODE-1-1-UTF-7 Mail-safe Unicode
  2836.      ISO-2022-JP-2 Multilingual
  2837.      
  2838.    Earlier versions of Pine made use of the character set tags associated
  2839.    with text in MIME to decide if the text should be displayed or not.
  2840.    Depending on the character set tag and the character-set variable in
  2841.    Pine, the text was either displayed as is, displayed with some
  2842.    characters filtered out, or not displayed at all. The current version
  2843.    uses a much simpler algorithm in order to maximize the chance that
  2844.    useful contents are readable by the user. It simply displays all
  2845.    messages of type text and makes no attempt to filter out characters
  2846.    that may be in the wrong character set. If the text is tagged as
  2847.    something other than US-ASCII and the tag does not match the character
  2848.    set that the character-set variable is set to, then a warning is
  2849.    printed at the start of the message. In that case, it is possible that
  2850.    the text will be displayed incorrectly. For example, if the text is
  2851.    one variant of ISO-8859 and the display device is another variant,
  2852.    some of the characters may show up on the screen as the wrong
  2853.    character. Or if the text is Japanese and the display device is not,
  2854.    some parts of the message may be total gibberish (which will look like
  2855.    ASCII gibberish). On the other hand, the parts of the Japanese message
  2856.    that really are US-ASCII will be readable in the midst of the
  2857.    gibberish.
  2858.    
  2859.    In the case of PC-Pine, the character values cannot be passed through
  2860.    to the display device unaltered since MS-DOS uses various non-standard
  2861.    character sets called "Code Pages".
  2862.    
  2863.    The mapping between DOS Code Page and standard character set is
  2864.    controlled by the "character-set" variable in the PINERC file and the
  2865.    PC's installed Code Page. PC-Pine will automatically map common
  2866.    characters in IBM Code Pages 437, 850, 860, 863, and 865 to ISO-8859-1
  2867.    and back when the PINERC has "character-set=ISO-8859-1". Pine will
  2868.    also map common characters for IBM Code Page 866 to ISO-8859-5 and
  2869.    back when "character-set=ISO-8859-5". The mappings are bi-directional,
  2870.    and applied to all saved text attachments in the defined character
  2871.    set, messages exported, etc.
  2872.    
  2873.    Alternatively, the translation tables can be configured externally and
  2874.    applied at run time whenever the "character-set=" variable is set to
  2875.    something other then "US-ASCII" (the default). PC-Pine looks in the
  2876.    text file pointed to by the environment variable "ISO_TO_CP" for the
  2877.    table to use for mapping text matching the type defined by the
  2878.    "character-set=" variable into the local Code Page value. PC-Pine
  2879.    looks in the text file pointed to by the environment variable
  2880.    "CP_TO_ISO" for the table to use for mapping text in the local Code
  2881.    Page into outbound text tagged with the "character-set=" variable's
  2882.    value.
  2883.    
  2884.    A text file containing a character set mapping table is expected to
  2885.    contain 256 elements where each element is a decimal number separated
  2886.    from the next element by white-space (space, tab or newline, but no
  2887.    commas!). The index of the element is the character's value in the
  2888.    source character set, and the element's value is the corresponding
  2889.    character's value in the destination character set.
  2890.    
  2891.      _________________________________________________________________
  2892.                                       
  2893. Interrupted and Postponed Messages
  2894.  
  2895.    If the user is composing mail and is interrupted by being disconnected
  2896.    (SIGHUP, SIGTERM or end of file on the standard input), Pine will save
  2897.    the interrupted composition and allow the user to continue it when he
  2898.    or she resumes Pine. As the next Pine session starts, a message will
  2899.    be given that an interrupted message can be continued. To continue the
  2900.    interrupted message, simply go into the composer. To get rid of the
  2901.    interrupted message, go into the composer and then cancel the message
  2902.    with ^C.
  2903.    
  2904.    Composition of half-done messages may be postponed to a later time by
  2905.    giving the ^O command. Other messages can be composed while postponed
  2906.    messages wait. All of the postponed messages are kept in a single
  2907.    folder. Postponing is a good way to quickly reference other messages
  2908.    while composing.
  2909.    
  2910.      _________________________________________________________________
  2911.                                       
  2912. Message Status
  2913.  
  2914.    The c-client library allows for several flags or status marks to be
  2915.    set for each message. Pine uses four of these flags: UNSEEN, DELETED,
  2916.    ANSWERED, and FLAGGED. The "N" in Pine's FOLDER INDEX means that a
  2917.    message is unseen-it has not been read from this folder yet. The "D"
  2918.    means that a message is marked for deletion. Messages marked with "D"
  2919.    are removed when the user expunges the folder (which usually happens
  2920.    when the folder is closed or the user quits Pine). The "A" in Pine's
  2921.    FOLDER INDEX means that the message has been replied-to. The "*" in
  2922.    Pine's FOLDER INDEX means that the message has been ``flagged'' as
  2923.    important. That is, the user used the Flag command to turn the FLAGGED
  2924.    flag on. This flag can mean whatever the user wants it to mean. It is
  2925.    just a way to mark some messages as being different from others. It
  2926.    will usually probably be used to mark a message as somehow being
  2927.    ``important''. For Berkeley format folders, the message status is
  2928.    written into the email folder itself on the header lines marked
  2929.    Status: and X-Status. In Tenex and PC-Pine's MTX folder formats, the
  2930.    status goes into the 36-bit octal flags.
  2931.    
  2932.      _________________________________________________________________
  2933.                                       
  2934. MIME: Reading a Message
  2935.  
  2936.    Pine should be able to handle just about any MIME message. When a MIME
  2937.    message is received, Pine will display a list of all the parts, their
  2938.    types and sizes. It will display the attachments when possible and
  2939.    appropriate and allow users to save all other attachments.
  2940.    
  2941.    Starting with version 3.90, Pine honors the "mailcap" configuration
  2942.    system for specifying external programs for handling attachments. The
  2943.    mailcap file maps MIME attachment types to the external programs
  2944.    loaded on your system which can display and/or print the file. A
  2945.    sample mailcap file comes bundled with the Pine distribution. It
  2946.    includes comments which explain the syntax you need to use for
  2947.    mailcap. With the mailcap file, any program (mail readers,
  2948.    newsreaders, WWW clients) can use the same configuration for handling
  2949.    MIME-encoded data.
  2950.    
  2951.    If a $MAILCAPS environment variable is defined, Pine will use that to
  2952.    look for one or more mailcap files, which are combined. In the absence
  2953.    of $MAILCAPS, Unix Pine will look for a personal mailcap file in
  2954.    ~/.mailcap and combine that with a system-wide file in /etc/mailcap.
  2955.    PC-Pine will look for a file named MAILCAP in the same directory as
  2956.    the PINERC file, and/or the directory containing the PINE.EXE
  2957.    executable.
  2958.    
  2959.    Messages which include rich text or enriched text in the main body
  2960.    will be displayed in a very limited way (it will show bold and
  2961.    underlining).
  2962.    
  2963.    If Pine sees a MIME message part tagged as type IMAGE, and Pine's
  2964.    image-viewer. configuration variable is set, Pine will attempt to send
  2965.    that attachment to the named image viewing program. In the case of
  2966.    UNIX Pine, the DISPLAY environment variable is checked to see if an
  2967.    X-terminal is being used (which can handle the images). If the
  2968.    image-viewer variable is not set, Pine uses the mailcap system to
  2969.    determine what to do with IMAGE types, just as it does for any other
  2970.    non-TEXT type, e.g. type APPLICATION. For MIME's generic "catch all"
  2971.    type, APPLICATION/OCTET-STREAM, the mailcap file will probably not
  2972.    specify any action, but Pine users may always Save any MIME attachment
  2973.    to a file.
  2974.    
  2975.    MIME type "text/plain" is handled a little bit differently than the
  2976.    other types. If you are viewing the main body part in the MESSAGE TEXT
  2977.    viewing screen, then Pine will use its internal viewer to display it.
  2978.    This happens even if there is a mailcap description which matches this
  2979.    particular type. If it is labelled as having a character set other
  2980.    than the one you are using, it will still be displayed by the internal
  2981.    viewer (perhaps incorrectly), though you will get a warning message
  2982.    prepended to the message in the viewing screen. However, if you view a
  2983.    part of type "text/plain" from the ATTACHMENT INDEX screen, then Pine
  2984.    will check the mailcap database for a matching entry and use it in
  2985.    preference to its internal viewer.
  2986.    
  2987.    Some text attachments, specifically those which are just other email
  2988.    messages forwarded as MIME messages, are displayed as part of the main
  2989.    body of the message. This distinction allows easy display when
  2990.    possible (the forward as MIME case) and use of an attachment viewer
  2991.    when that is desirable (the plain text file attachment case).
  2992.    
  2993.    If the parts of a multipart message are alternate versions of the same
  2994.    thing Pine will select and display the one best suited. For parts of
  2995.    type "message/external-body", the parameters showing the retrieval
  2996.    method will be displayed, but the retrieval process is not yet
  2997.    automated. Messages of type "message/partial" are not currently
  2998.    supported.
  2999.    
  3000.      _________________________________________________________________
  3001.                                       
  3002. MIME: Sending a Message
  3003.  
  3004.    There are two important factors when trying to include an attachment
  3005.    in a message: encoding and labeling. Pine has rules for both of these
  3006.    which try to assure that the message goes out in a form that is robust
  3007.    and can be handled by other MIME mail readers.
  3008.    
  3009.    MIME has two ways of encoding data-Quoted-Printable and Base64.
  3010.    Quoted-Printable leaves the ASCII text alone and only changes 8-bit
  3011.    characters to "=" followed by the hex digits. For example, "=09" is a
  3012.    tab. It has the advantage that it is mostly readable and that it
  3013.    allows for end of line conversions between unlike systems. Base64
  3014.    encoding is similar to uuencode or btoa and just encodes a raw bit
  3015.    stream. This encoding is designed to get text and binary files through
  3016.    even the most improperly implemented and configured gateways intact,
  3017.    even those that distort uuencoded data.
  3018.    
  3019.    All attachments are encoded using Base64 encoding. This is so that the
  3020.    attachment will arrive at the other end looking exactly like it did
  3021.    when it was sent. Since Base64 is completely unreadable except by
  3022.    MIME-capable mailers or programs, there is an obvious tradeoff being
  3023.    made here. We chose to ensure absolutely reliable transport of
  3024.    attachments at the cost of requiring a MIME-capable mailer to read
  3025.    them. If the user doesn't want absolute integrity he or she may always
  3026.    include text (with the ^R command) in the body of a message instead of
  3027.    attaching it. With this policy, the only time quoted-printable
  3028.    encoding is used is when the main body of a message includes special
  3029.    foreign language characters.
  3030.    
  3031.    When an attachment is to be sent, Pine sniffs through it to try to set
  3032.    the right label (content-type and subtype). An attachment with any
  3033.    lines longer than 500 characters in it or more than 10% of the
  3034.    characters are 8-bit it will be considered binary data. Pine will
  3035.    recognize (and correctly label) a few special types including GIF,
  3036.    JPEG, PostScript, and some audio formats.
  3037.    
  3038.    If it is not binary data (has only a small proportion of 8-bit
  3039.    characters in it,) the attachment is considered 8-bit text. 8-bit text
  3040.    attachments are labeled "text/plain" with charset set to the value of
  3041.    the user's character-set variable. If an attachment is ASCII (no 8-bit
  3042.    characters) and contains no ESCAPE, ^N, or ^O characters (the
  3043.    characters used by some international character sets), then it is
  3044.    considered plain ASCII text. Such attachments are given the MIME label
  3045.    "text/plain; charset=US-ASCII", regardless of the setting of the
  3046.    user's character-set variable.
  3047.    
  3048.    All other attachments are unrecognized and therefore given the generic
  3049.    MIME label "application/octet-stream".
  3050.    
  3051.      _________________________________________________________________
  3052.                                       
  3053. New Mail Notification
  3054.  
  3055.    Pine checks for new mail in the INBOX and in the currently open folder
  3056.    at least every two and a half minutes. It used to be 30 seconds
  3057.    instead of 150 seconds, but we increased it in order to reduce the
  3058.    load on large systems with lots of Pine users. The value can be
  3059.    changed at compile-time in the pine/os.h file. If you really don't
  3060.    want to wait you can force a new mail check by pressing N Next with
  3061.    the cursor on the last message of the message index or by redrawing
  3062.    the screen with a ^L.
  3063.    
  3064.    When there is new mail, the message(s) will appear in the index, the
  3065.    screen will beep, and a notice showing the sender and subject will be
  3066.    displayed. If there has been more than one new message since you last
  3067.    issued a command to Pine, the notice will show the count of new
  3068.    messages and the sender of the most recent one.
  3069.    
  3070.    Questions have arisen about the interaction between Pine and external
  3071.    mail notification routines (biff, csh, login). Firstly and
  3072.    unfortunately, we have found no PC based program that will check for
  3073.    email on an IMAP server when PC-Pine is not running. If you find one,
  3074.    please tell us.
  3075.    
  3076.    The UNIX case is more complicated. Pine sets the modification and
  3077.    access time on a file every time it performs a write operation (status
  3078.    change or expunge). You need to see which of these your email
  3079.    notification program is looking at to know how it will behave with
  3080.    Pine.
  3081.    
  3082.      _________________________________________________________________
  3083.                                       
  3084. NFS
  3085.  
  3086.    It is possible to access mail folders on NFS mounted volumes with
  3087.    Pine, but there are some drawbacks to doing this, especially in the
  3088.    case of incoming-message folders that may be concurrently updated by
  3089.    Pine and the system's mail delivery agent. One concern is that Pine's
  3090.    user-contention locks don't work because /tmp is usually not shared,
  3091.    and even if it was, flock() doesn't work across NFS.
  3092.    
  3093.    The implementation of the standard UNIX ".lock" file locking has been
  3094.    modified to work with NFS as follows. Standard hitching post locking
  3095.    is used so first a uniquely named file is created, usually something
  3096.    like xxxx.host.time.pid. Then a link to it is created named xxxx.lock
  3097.    where the folder being locked is xxxx. This file constitutes the lock.
  3098.    This is a standard UNIX locking scheme. After the link returns, a
  3099.    stat(2) is done on the file. If the file has two links, it is
  3100.    concluded that the lock succeeded and it is safe to proceed.
  3101.    
  3102.    In order to minimize the risks of locking failures via NFS, we
  3103.    strongly recommend using IMAP rather than NFS to access remote
  3104.    incoming message folders, e.g. your INBOX. However, it is generally
  3105.    safe to access personal saved-message folders via NFS since it is
  3106.    unlikely that more than one process will be updating those folders at
  3107.    any given time. Still, some problems may occur when two Pine sessions
  3108.    try to access the same mail folder from different hosts without using
  3109.    IMAP. Imagine the scenario: Pine-A performs a write that changes the
  3110.    folder. Pine-B then attempts to perform a write on the same folder.
  3111.    Pine-B will get upset that the file has been changed from underneath
  3112.    it and abort operations on the folder. Pine-B will continue to display
  3113.    mail from the folder that it has in its internal cache, but it will
  3114.    not read or write any further data. The only thing that will be lost
  3115.    out of the Pine-B session when this happens is the last few status
  3116.    changes.
  3117.    
  3118.    If other mail readers besides Pine are involved, all bets are off.
  3119.    Typically, mailers don't take any precautions against a user opening a
  3120.    mailbox more than once and no special precautions are taken to prevent
  3121.    NFS problems.
  3122.    
  3123.      _________________________________________________________________
  3124.                                       
  3125. Printers and Printing
  3126.  
  3127.    UNIX Pine can print to the standard UNIX line printers or to generic
  3128.    printers attached to ANSI terminals using the escape sequences to turn
  3129.    the printer on and off. The user has a choice of three printers in the
  3130.    configuration.
  3131.    
  3132.    The first setting, attached-to-ansi, makes use of escape sequences on
  3133.    ANSI/VT100 terminals. It uses "<ESC>[5i" to begin directing all output
  3134.    sent to the terminal to the printer and then "<ESC>[6i" to return to
  3135.    normal. Pine will send these escape sequences if the printer is set to
  3136.    attached-to-ansi. This works with most ANSI/VT100 emulators on Macs
  3137.    and PCs such as kermit, NCSA telnet, VersaTerm Pro, and WinQVT.
  3138.    Various terminal emulators implement the print feature differently.
  3139.    For example, NCSA telnet requires "capfile = PRN" in the config.tel
  3140.    file. Attached-to-ansi printing doesn't work at all with the telnet
  3141.    provided with PC-NFS.
  3142.    
  3143.    The second selection is the standard UNIX print command. The default
  3144.    is lpr, but it can be changed on a system basis to anything so desired
  3145.    in /usr/local/lib/pine.conf.
  3146.    
  3147.    The third selection is the user's personal choice for a UNIX print
  3148.    command. The text to be printed is piped into the command. Enscript or
  3149.    lpr with options are popular choices. The actual command is retained
  3150.    even if one of the other print selections is used for a while.
  3151.    
  3152.    If you have a PostScript printer attached to a PC or Macintosh, then
  3153.    you will need to use a utility called ansiprt to get printouts on your
  3154.    printer. Ansiprt source code and details can be found in the ./contrib
  3155.    directory of the Pine distribution.
  3156.    
  3157.    The three printer choices are for UNIX Pine only. PC-Pine for DOS can
  3158.    only print to the locally attached printer. All printing on PC-Pine
  3159.    (DOS) is done via ROM BIOS Print Services (Int 17h). After verifying
  3160.    the existence of a local printer via the BIOS Equipment-List Service
  3161.    (Int 11h), it simply sends the message text, character by character,
  3162.    to the first printer found using ASCII CR and LF at the end of lines
  3163.    and followed by an ASCII FF. Note, some system adjustments using the
  3164.    PC's "MODE" command may be required if the printer is not on the first
  3165.    parallel port. PC-Pine cannot generate PostScript, so printing to
  3166.    exclusively PostScript printers does not work.
  3167.    
  3168.    PC-Pine for Winsock uses the MS-Windows printer interface. A Pine
  3169.    print command will bring up a standard MS-Windows printer dialog box.
  3170.    
  3171.      _________________________________________________________________
  3172.                                       
  3173. Save and Export
  3174.  
  3175.    Pine users get two options for moving messages in Pine: save and
  3176.    export. Save is used when the message should remain ``in the Pine
  3177.    realm.'' Saved messages include the complete header (including header
  3178.    lines normally hidden by Pine), are placed in a Pine folder collection
  3179.    and accumulate in a standard folder format which Pine can read. In
  3180.    contrast, the export command is used to write the contents of a
  3181.    message to a file for use outside of Pine. Messages which have been
  3182.    exported are placed in the user's home directory (unless the feature
  3183.    use-current-dir is turned on), not in a Pine folder collection. Unless
  3184.    FullHeaderMode is toggled on, all delivery-oriented headers are
  3185.    stripped from the message. Even with export, Pine retains message
  3186.    separators so that multiple messages can accumulate in a single file
  3187.    and subsequently be accessed as a folder. On UNIX systems, the export
  3188.    command pays attention to the standard umask for the setting of the
  3189.    file permissions.
  3190.    
  3191.      _________________________________________________________________
  3192.                                       
  3193. Sent Mail
  3194.  
  3195.    Pine's default behavior is to keep a copy of each outgoing message in
  3196.    a special "sent mail" folder. This folder is also called the fcc for
  3197.    "file carbon copy". The existence, location and name of the sent mail
  3198.    folder are all configurable. Sent mail archiving can be turned off by
  3199.    setting the configuration variable default-fcc="". The sent mail
  3200.    folder is assumed to be in the default collection for saves, which is
  3201.    the first collection named in folder-collections. The name of the
  3202.    folder can be chosen by entering a name in default-fcc. With PC-Pine,
  3203.    this can be a bit complicated. If the default collection for saves is
  3204.    local (DOS), then the default-fcc needs to be "SENTMAIL", which is
  3205.    syntax for a DOS file. However, if the default collection for saves is
  3206.    remote, then the default-fcc needs to be "sent-mail" to match the UNIX
  3207.    syntax.
  3208.    
  3209.    The configuration variable fcc-name-rule also plays a role in
  3210.    selecting the folder to save sent mail in. See the documentation on it
  3211.    in the section on configuration variables.
  3212.    
  3213.    The danger here is that the sent mail could grow without bound. For
  3214.    this reason, we thought it useful to encourage the users to
  3215.    periodically prune their sent mail folder. The first time Pine is used
  3216.    each month it will offer to archive all messages sent from the month
  3217.    before. Pine also offers to delete all the sent mail archive folders
  3218.    which are more than 1 month old. If the user or system has disabled
  3219.    sent mail archiving (by setting the configuration variable
  3220.    default-fcc="") or if the fcc folder is a remote/IMAP folder then
  3221.    there will be no pruning question.
  3222.    
  3223.    It is likely that Pine will be improved so that users can set the time
  3224.    increment for pruning (weekly, monthly, yearly, never) but that has
  3225.    not been implemented yet.
  3226.    
  3227.      _________________________________________________________________
  3228.                                       
  3229. Spell Checker
  3230.  
  3231.    Spell checking is available for UNIX Pine only. We could not find an
  3232.    appropriate PC based spell checker to hook into PC-Pine. Even UNIX
  3233.    Pine depends on the system for its spell checking and dictionary.
  3234.    Pico, the text editor, uses the same spell checking scheme as Pine.
  3235.    
  3236.    Lines beginning with ">" (usually messages included in replies) are
  3237.    not checked. The message text to be checked is on the standard input
  3238.    and the incorrect words are expected on the standard output.
  3239.    
  3240.    The default spell checker is UNIX spell. You can replace this at
  3241.    compile time for the whole system. Pine also respects the environment
  3242.    variable SPELL. Beginning in Pine 3.92, there is also a "speller"
  3243.    configuration entry in the Setup/Config screen and configuration
  3244.    files. If it is set, Pine will use that as the spelling checker. The
  3245.    spelling checker reads its words from a standard dictionary on the
  3246.    system. Below is a description, contributed by Bob Hurt, of how you
  3247.    can create your own personal dictionary with additional ``correct''
  3248.    words.
  3249.    
  3250.    Step 1:
  3251.           Make a file with all the words you want to include in your new
  3252.           dictionary. I did mine with one word per line in alphabetical
  3253.           order. Caps don't matter at all, as far as I know.
  3254.    Step 2:
  3255.           At the UNIX prompt, type "cat [word file] | spellin
  3256.           /usr/dict/hlista > [new dict name]" where [word file] is the
  3257.           file you just created and [new dict name] is the name of the
  3258.           new dictionary that Pine will look at instead of the standard
  3259.           /usr/dict/hlista. I named my word file .bobwords and my
  3260.           dictionary .bobspell so I don't have to see them when I do a ls
  3261.           command (ls doesn't list "dot" files). I also put the above
  3262.           command into my .alias file as the command makedict so I can
  3263.           add a word to my word file and easily recreate my dictionary.
  3264.           NOTE: the new dictionary is in something called a "hashed"
  3265.           format, and can't be read normally.
  3266.    Step 3:
  3267.           Check your new dictionary. At the UNIX prompt, type "cat [word
  3268.           file] | spellout [new dict name]" If you did everything
  3269.           correctly, it should just give you another prompt. If it lists
  3270.           any of the words in your file, something is wrong. I can try to
  3271.           help if all else fails.
  3272.    Step 4:
  3273.           Now you have to tell UNIX to use your dictionary instead of the
  3274.           standard one by setting the environment variable SPELL to
  3275.           access your dictionary. Go into your .login or .cshrc file in
  3276.           your home directory (it doesn't seem to make a difference which
  3277.           one you use) and add the line
  3278.           
  3279.      setenv SPELL "spell -d [new dict name]"
  3280.    
  3281.           I also created an alias for SPELL in my .alias file so I can
  3282.           use the UNIX spell command to spell-check a file outside of
  3283.           Pine. (The .alias line is: alias spell 'spell -d [new dict
  3284.           name]')
  3285.    Step 5:
  3286.           Now you need to logoff and log back on to let UNIX look at your
  3287.           .login (or .cshrc) file.
  3288.           
  3289.    Here is an alternative method suggested by Zachary Leber:
  3290.    
  3291.    
  3292.           Create a list (e.g. .zachwords) with the upper case followed by
  3293.           lower case words, sorted alphabetically.
  3294.    
  3295.           Add this line to .cshrc:
  3296.           
  3297.      setenv SPELL 'spell +/home/ie/rsa/.zachwords'
  3298.    
  3299.           The limitation here is that the path must be absolute (e.g.
  3300.           +~/.zachwords doesn't work).
  3301.    
  3302.           My man pages for spell show this + flag to be an easy way to do
  3303.           the exception list. This way you don't have to bother with hash
  3304.           lists or rehashing, and it seems to work across several
  3305.           platforms.
  3306.           
  3307.      _________________________________________________________________
  3308.                                       
  3309. Terminal Emulation and Key Mapping
  3310.  
  3311.    Pine has been designed to require as little as possible from the
  3312.    terminal. At the minimum, Pine requires cursor positioning, clear to
  3313.    end of line, and inverse video. Unfortunately, there are terminals
  3314.    that are missing some of these such as a vt52. Pine makes no
  3315.    assumptions as to whether the terminal wraps or doesn't wrap. If the
  3316.    terminal has other capabilities it may use some of them. Pine won't
  3317.    run well on older terminals that require a space on the screen to
  3318.    change video attributes, such as the Televideo 925. One can get around
  3319.    this on some terminals by using "protected field" mode. The terminal
  3320.    can be made to go into protected mode for reverse video, and then
  3321.    reverse video is assigned to protected mode.
  3322.    
  3323.    Pine handles screens of most any size and resizing on the fly. It
  3324.    catches SIGWINCH and does the appropriate thing. A screen one line
  3325.    high will display only the new mail notification. Screens that are
  3326.    less than ten columns wide don't format very nicely or work well, but
  3327.    will function fine again once resized to something large. Pine sets an
  3328.    internal maximum screen size (currently 170x200) and decides to use
  3329.    either termcap or terminfo when it is compiled.
  3330.    
  3331.    On the input side of things, Pine uses all the standard keys, most of
  3332.    the control keys and (in function-key mode) the function keys. Pine
  3333.    avoids certain control keys, specifically ^S, ^Q, ^H, and ^\ because
  3334.    they have other meanings outside of Pine (they control data flow,
  3335.    etc.) ^H is treated the same as the delete key, so the backspace or
  3336.    delete keys always works regardless of any configuration. In an
  3337.    upcoming version, there will be an option to have the delete key
  3338.    behave like ^D rather than ^H.
  3339.    
  3340.    Sometimes a communications program or communications server in between
  3341.    you and the other end will eat certain control characters. There is a
  3342.    work-around when you need it. If you type two escape characters
  3343.    followed by a character that will be interpreted as the character with
  3344.    the control key depressed. For example, ESC ESC T is equivalent to ^T.
  3345.    
  3346.    When a function key is pressed and Pine is in regular (non-function
  3347.    key) mode, Pine traps escape sequences for a number of common function
  3348.    keys so users don't get an error message or have an unexpected command
  3349.    executed for each character in the function key's escape sequence.
  3350.    Pine expects the following escape sequences from terminals defined as
  3351.    VT100:
  3352.    
  3353.      ANSI/VT100
  3354.      F1: <ESC>OP
  3355.      F2: <ESC>OQ
  3356.      F3: <ESC>OR
  3357.      F4: <ESC>OS
  3358.      F5: <ESC>Op
  3359.      F6: <ESC>Oq
  3360.      F7: <ESC>Or
  3361.      F8: <ESC>Os
  3362.      F9: <ESC>Ot
  3363.      F10: <ESC>Ou
  3364.      F11: <ESC>Ov
  3365.      
  3366.    Arrow keys are a special case. Pine has the escape sequences for a
  3367.    number of conventions for arrow keys hard coded and does not use
  3368.    termcap to discover them. This is because termcap is sometimes
  3369.    incorrect, and because many users have PC's running terminal emulators
  3370.    that don't conform exactly to what they claim to emulate. Some arrow
  3371.    keys on old terminals send single control characters like ^K (one even
  3372.    sends ^\). These arrow keys will not work with Pine. The most popular
  3373.    escape sequences for arrow keys are:
  3374.    
  3375.      Up: <ESC>[A <ESC>?x <ESC>A <ESC>OA
  3376.      Down: <ESC>[B <ESC>?r <ESC>B <ESC>OB
  3377.      Right: <ESC>[C <ESC>?v <ESC>C <ESC>OC
  3378.      Left: <ESC>[D <ESC>?t <ESC>D <ESC>OD
  3379.      
  3380.    It is possible to configure an NCD X-terminal so that some of the
  3381.    special keys operate. Brad Greer contributes these instructions:
  3382.    
  3383.    1.
  3384.           In your .Xdefaults file, include the following "translations",
  3385.           using lower hex values:
  3386.           
  3387.      Pine*VT100.Translations: #override \n\
  3388.      <Key>Delete: string(0x04) \n\
  3389.      <Key>End: string(0x05) \n\
  3390.      <Key>Escape: string(0x03) \n\
  3391.      <Key>Home: string(0x01) \n\
  3392.      <Key>Next: string(0x16) \n\
  3393.      <Key>Prior: string(0x19) \n\
  3394.      <Key>KP_Enter: string(0x18) \n\
  3395.    2.
  3396.           Start up Pine from an xterm, and specify a "resource name".
  3397.           This resource name will allow the user to specify resources for
  3398.           Pine (that deviate from the defaults). For example, xterm -name
  3399.           Pine -e pine & (the resource name Pine corresponds to the
  3400.           translations just added in the .Xdefaults file).
  3401.  
  3402.                       Notes for Porting and Modification
  3403.                                        
  3404. Porting Pine to Other Platforms
  3405.  
  3406.    Substantial effort has gone into making Pine/Pico portable. There are
  3407.    still, of course, a number of machine dependencies. Some of the ports
  3408.    are well-tested and some are untested. In particular, the most heavily
  3409.    used ports are the Ultrix, NeXT, DOS, and PTX ports.
  3410.    
  3411.    Each platform is given a three letter name (see the file
  3412.    doc/pine-ports). Make up a new one for your new port. We've attempted
  3413.    to bring all potential platform dependencies into three files:
  3414.    os-xxx.h, os-xxx.c, and makefile.xxx where xxx is the three letter
  3415.    name of the port. Thus any new port will hopefully just result in new
  3416.    versions of these files and some notes for the pine-ports file. There
  3417.    are actually nine new files needed, because there is a set of these
  3418.    files in the c-client, Pico, and Pine source directories. (As you can
  3419.    tell by reading this technical note, Pine originated on Unix systems.
  3420.    There are still probably many Unix dependencies built in, but these
  3421.    should be diminishing now that there are DOS, Windows, and VMS ports.
  3422.    Regrettably, the source code is full of instances of "ifdef DOS". Most
  3423.    of these are due to memory limit problems on DOS as opposed to actual
  3424.    system dependencies.
  3425.    
  3426.    The makefiles are kept as simple and straight-forward as possible,
  3427.    because many previous attempts at automatically figuring out what to
  3428.    do seem to have become complex and ineffective in what they set out to
  3429.    do: which is to make compiling and installing the program easy. Each
  3430.    port is for a specific hardware/software platform, also because past
  3431.    attempts to generalize on versions of Unix or some CPU architecture
  3432.    don't seem to have gained much. Thus, there is a separate makefile for
  3433.    each platform that calls the appropriate compiler and linker with the
  3434.    appropriate flags. Most of these makefiles are pretty similar. The
  3435.    makefile also specifies which of the os-xxx.c and os-xxx.h files to
  3436.    use. It is the root from which all platform dependencies are selected.
  3437.    In most cases the makefile also defines a symbol named after the
  3438.    platform on which there can be dependencies in the source code, though
  3439.    we've tried to minimize relying on this where reasonable. Pine, Pico,
  3440.    and the C-client don't quite do everything the same (there are at
  3441.    least three separate authors involved). Basically, to build the source
  3442.    in one of the directories, run make -f makefile.xxx where xxx is the
  3443.    three-letter name of the platform. That's all the build script does.
  3444.    When starting a new port in the pine directory, there is a generic
  3445.    makefile called makefile.gen which should be a good starting point.
  3446.    
  3447.    The file os-xxx.h is used for general platform dependent #include's
  3448.    and #defines. In the pine directory these .h files are located in the
  3449.    osdep subdirectory. All the include files that have been found to vary
  3450.    from one platform to another are also included here. In the case of
  3451.    Pico, there is only one os-xxx.h file called os-unx.h for most of the
  3452.    supported Unix ports and inside it are #ifdefs based on the platform
  3453.    specific symbol defined in the makefile. On the other hand, Pine now
  3454.    has a separate os-xxx.h file for each platform. There are a number of
  3455.    Pine configuration settings that are defined here, as well, such as
  3456.    the place it looks for certain files, defaults for the printer and
  3457.    folder names, the maximum screen size, and so on. For the Pine portion
  3458.    of the port, start by looking at the generic os-gen.h file and
  3459.    comparing it to some of the specific os-xxx.h files in osdep.
  3460.    
  3461.    The os-xxx.c file contains functions that are potentially platform
  3462.    dependent. Again, the idea is to gather all the dependencies in one
  3463.    place. Pico uses the same strategy here as it uses with os-unx.h. That
  3464.    is, there is a single os-unx.c file for most of the Unix ports. Pine
  3465.    uses a complicated looking method to produce the os-xxx.c file from a
  3466.    set of included files. Each included file usually contains a single
  3467.    function and we've found that there are usually only a couple
  3468.    different implementations of each function in the ports we've done so
  3469.    far. Hopefully, coming up with an os-xxx.c for a new port will usually
  3470.    be a matter of including the right set of these already written
  3471.    functions. This is done by writing a new os-xxx.ic file in the osdep
  3472.    subdirectory. Start with the generic os-gen.ic, as you did with the
  3473.    os-gen.h file above.
  3474.    
  3475.    We strongly encourage that no changes be made to the general source
  3476.    when porting and that all changes be contained in the three/nine
  3477.    system dependent files if possible. The object is to maintain source
  3478.    code integrity and assimilate ports to new platforms rapidly. The more
  3479.    conventional way to do this is with a large collection of #ifdefs. The
  3480.    problem with this is that adding a port for a new platform implies
  3481.    changing the source code for all the other platforms and thereby risks
  3482.    breaking them. (We readily admit that there are still too many ifdefs
  3483.    in the code, but we haven't had time to devote to fully cleaning that
  3484.    up.)
  3485.    
  3486.    If you do port Pine to a new platform we hope that you will send us
  3487.    the changes required so that we may attempt to include it in a later
  3488.    release. Thanks!
  3489.    
  3490.      _________________________________________________________________
  3491.                                       
  3492. Test Checklist
  3493.  
  3494.    The following is a checklist of some things to check when testing a
  3495.    new port:
  3496.    
  3497.    ___
  3498.           Sending mail, check that headers are correct
  3499.    ___
  3500.           Sending mail with attachments
  3501.    ___
  3502.           Sending mail with SMTP server
  3503.    ___
  3504.           Sending mail without SMTP server
  3505.    ___
  3506.           Sending mail with list of two SMTP servers, first one doesn't
  3507.           answer
  3508.    ___
  3509.           Replying to and forwarding a message
  3510.    ___
  3511.           Postponing messages under composition
  3512.    ___
  3513.           Composer operations
  3514.    ___
  3515.           Alternate editor, enable-alternate-editor-implicitly
  3516.    ___
  3517.           Make sure local user names are expanded
  3518.    ___
  3519.           Test spelling checker
  3520.    ___
  3521.           Catching of SIGHUP while message is being composed
  3522.    ___
  3523.           Setting of variables in .pinerc
  3524.    ___
  3525.           New mail notification. Should happen with Pine idle to check
  3526.           timeouts
  3527.    ___
  3528.           Reading mail (attachments, MIME, MIME with mailcap viewers)
  3529.    ___
  3530.           Deleting, undeleting, expunging, sorting
  3531.    ___
  3532.           Expunge to empty folder
  3533.    ___
  3534.           Make sure that ~ expansion works in config files
  3535.    ___
  3536.           Make sure that $VAR expansion works in config files
  3537.    ___
  3538.           Save message to folder, check error conditions such as
  3539.           permission denied
  3540.    ___
  3541.           Export message with FullHeaderMode on and off
  3542.    ___
  3543.           Checkpointing (see the section on checkpointing)
  3544.    ___
  3545.           Open IMAP and RIMAP folders
  3546.    ___
  3547.           Default-fcc on remote IMAP server
  3548.    ___
  3549.           Fcc-name-rule, fcc in addrbook (while composing)
  3550.    ___
  3551.           Test opening bogus folders: invalid format, no permission
  3552.    ___
  3553.           Open a USENET news group, list in folder-lister, read news,
  3554.           post news
  3555.    ___
  3556.           Command line arguments
  3557.    ___
  3558.           Change password
  3559.    ___
  3560.           Lock keyboard
  3561.    ___
  3562.           Address book operations (edit, delete, add, lists, whereis,
  3563.           composeto)
  3564.    ___
  3565.           ReadOnly address book
  3566.    ___
  3567.           Look at addrbook, change addrbook-sort-rule in Config, go back
  3568.           to addrbook screen
  3569.    ___
  3570.           No permission to write in same directory as addrbook, should
  3571.           create addrbook.lu in a temp directory
  3572.    ___
  3573.           Multiple address books
  3574.    ___
  3575.           Address book loops from one addrbook to another and back
  3576.    ___
  3577.           TakeAddr command with one address, with multiple addresses
  3578.    ___
  3579.           TakeAddr command with ReadOnly address books
  3580.    ___
  3581.           TakeAddr command with one of two address books ReadOnly
  3582.    ___
  3583.           Send mail with empty address book
  3584.    ___
  3585.           Config Screen operation, does pinerc get written?
  3586.    ___
  3587.           Make sure SIGTSTP, ^Z works
  3588.    ___
  3589.           Pinef
  3590.    ___
  3591.           Sent-mail pruning (set back last-time-prune-questioned
  3592.           variable)
  3593.    ___
  3594.           Printing using all three printer configurations, various
  3595.           screens
  3596.    ___
  3597.           View help text and news
  3598.    ___
  3599.           Folder list operations (rename, create, delete...)
  3600.    ___
  3601.           Saved-msg-name-rule
  3602.    ___
  3603.           Screen redrawing in various screens (^L)
  3604.    ___
  3605.           Window resizing in various screens
  3606.    ___
  3607.           Error messages for incorrect terminal types (try "foo" and
  3608.           "vt52")
  3609.    ___
  3610.           Reading of /usr/local/lib/pine.conf
  3611.    ___
  3612.           Fixing variables and features in /usr/local/lib/pine.conf.fixed
  3613.    ___
  3614.           Flag command (check message status changed in mail folder)
  3615.    ___
  3616.           Initial-keystroke-list
  3617.    ___
  3618.           Aggregate operations (save, delete, export, takeaddr, ...)
  3619.    ___
  3620.           Build xxx from scratch, build clean
  3621.